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

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
- Install the package(s) you need:
npm install @ngx-tailwind-ui/bottom-sheet-modal @ngx-tailwind-ui/toast @ngx-tailwind-ui/phonenumbers
- 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";
- Configure Tailwind CSS to scan the library files for utility classes:
For Tailwind CSS v4 (Recommended)
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.