tailui add
Add a pre-built TailUI component to your project. This copies the CSS styles and generates a typed framework component (React, Vue, Svelte, or Angular) based on your configuration.
# Add a button component (CSS + React/Vue/Svelte component)npx tailui add button# Add a card componentnpx tailui add card# Add only the CSS file (no framework component)npx tailui add modal --css-only# Overwrite existing filesnpx tailui add button --overwriteWhat happens when you run this command:
- The CSS file (e.g.
ui.button.css) is copied to yourstylesDir - The
index.cssis updated to import the new component styles
The generated component uses TailUI .ui-* classes and exposes typed props for variants, sizes, and states. You own the code — customize it as needed.