Components
Tailwind
A simple, drop-in way to use Tailwind CSS in your components.
The supported Tailwind version is 3.3.2 due to changes in the PostCSS plugin synchronicity.
Tailwind
Support
Client-side
Server-side
Examples
Preview
Custom Tailwind config
You can also pass a custom Tailwind config to the Tailwind component.
API
Props
children
React.ReactNode
requiredThe children of the Tailwind component. Components will have access to the Tailwind CSS classes.
config
any
A custom Tailwind config to use for this component. See all available options at https://tailwindcss.com/docs/configuration
NB: The content
option is automatically set to the children of the Tailwind component.