Angular Tailwind UI

July 17, 2026 ยท View on GitHub

A collection of easy-to-use Angular components, directives, and services built with Angular and Tailwind CSS. The library packages are fully compatible with both Tailwind CSS v3 (using library version 7.0.0) and Tailwind CSS v4 (using library version 7.1.0+). This library provides a set of modern, accessible, and customizable UI components that follow best practices and integrate seamlessly with your Angular applications.

โœจ Features

  • ๐ŸŽจ Modern Design: Built to integrate seamlessly with Tailwind CSS v3 and v4 for beautiful, responsive components
  • ๐Ÿš€ Angular 19 Ready: Fully compatible with the latest Angular version
  • โ™ฟ Accessibility First: All components follow WCAG guidelines
  • ๐ŸŒ™ Dark Mode Support: Built-in dark mode support for all components
  • ๐Ÿ“ฑ Responsive: Mobile-first approach with desktop optimizations
  • ๐ŸŽฏ Type-Safe: Full TypeScript support with comprehensive type definitions
  • ๐Ÿ”ง Customizable: Easy to customize with TailwindCSS classes
  • โšก Performance: Optimized for fast loading and smooth interactions
  • ๐Ÿ“ฆ Modular: Install only what you need
  • ๐Ÿ› ๏ธ Developer Experience: Built with developer productivity in mind

๐Ÿ“ฆ Packages

Bottom Sheet Modal

A responsive bottom sheet modal that adapts to screen size:

  • ๐Ÿ“ฑ Displays as bottom sheet on mobile
  • ๐Ÿ’ป Shows as modal dialog on desktop
  • ๐Ÿ”„ Smooth animations and transitions
  • ๐ŸŽจ Customizable styling with TailwindCSS
npm install @ngx-tailwind-ui/bottom-sheet-modal

Bottom Sheet Modal Demo

Toast

A flexible toast notification system:

  • ๐Ÿ“ Multiple types (info, success, warning, error)
  • โฑ๏ธ Configurable duration
  • ๐ŸŽจ Visual feedback with icons
  • ๐Ÿ”„ Progress bar support
  • ๐ŸŽฏ Dismissible notifications
npm install @ngx-tailwind-ui/toast

Phone Numbers

A comprehensive phone number handling solution:

  • ๐Ÿ” Validation using Google's libphonenumber
  • ๐ŸŒ Automatic country code detection
  • ๐Ÿ“ฑ Formatting to international/national format
  • ๐Ÿ”„ Two-way binding support
  • โ™ฟ Accessibility features
npm install @ngx-tailwind-ui/phonenumbers

๐ŸŽฎ Demo

View the live demo to see all components in action.

๐Ÿ› ๏ธ Prerequisites

  • Angular 17+ project
  • Tailwind CSS (v3 or v4) configured in your project
  • Package-specific prerequisites (such as Angular animations)

๐Ÿš€ Quick Start

  1. Install the package(s) you need:
npm install @ngx-tailwind-ui/bottom-sheet-modal @ngx-tailwind-ui/toast @ngx-tailwind-ui/phonenumbers
  1. Import the components in your Angular application:
import { TauiBottomSheetModalComponent } from "@ngx-tailwind-ui/bottom-sheet-modal";
import { TauiToastComponent } from "@ngx-tailwind-ui/toast";
import { TauiPhonenumbersDirective } from "@ngx-tailwind-ui/phonenumbers";
  1. Configure Tailwind CSS to scan the library files for utility classes:

Add @source directives to your main stylesheet (e.g. src/styles.scss or src/styles.css):

@import "tailwindcss";

@source "../node_modules/@ngx-tailwind-ui/**/*.{html,ts,js,mjs}";

For Tailwind CSS v3

Add the library path to the content array in your tailwind.config.js file:

/** @type {import('tailwindcss').Config} */
module.exports = {
  content: [
    "./src/**/*.{html,ts}",
    "./node_modules/@ngx-tailwind-ui/**/*.{html,ts,js,mjs}"
  ],
  theme: {
    extend: {},
  },
  plugins: [],
};

๐ŸŒ Browser Support

All components are tested and supported on:

  • Chrome (latest)
  • Safari (latest)
  • Edge (latest)

โšก Performance Considerations

  • Change Detection: Optimized to minimize change detection cycles
  • Lazy Loading: Supports lazy loading for better initial load performance
  • Bundle Size: Minimal impact on bundle size
  • Memory Usage: Efficient memory management

๐Ÿค Contributing

We welcome contributions! Please see our CONTRIBUTE.md for guidelines on how to get started and contribute to this project.

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.