Link
Link adds the missing underline style to anchor elements that Tailwind CSS removes by default.
Installation
npx jsx-daisyui add linkDefault
link-default
In text
link-in-text
Tailwind CSS resets the style of links by default.
Add the link class to make it look like a normal link again.
Colors
Hover only
link-hover
Props
Link
| Prop | Type | Default | Description |
|---|---|---|---|
color | 'neutral' | 'primary' | 'secondary' | 'accent' | 'info' | 'success' | 'warning' | 'error' | - | Sets the link color. |
variant | 'hover' | - | When set to hover, the underline only appears on hover. |