Link

Link adds the missing underline style to links.

This page is not up to date. Some of the examples might not work as expected.
Class name
Type
link
Component
Adds underline
link-hover
Style
Only shows underline on hover
link-neutral
Color
neutral color
link-primary
Color
primary color
link-secondary
Color
secondary color
link-accent
Color
accent color
link-success
Color
success color
link-info
Color
info color
link-warning
Color
warning color
link-error
Color
error color

Primary color

<a class="$$link $$link-primary">I'm a simple link</a>
<a class="$$link $$link-primary">I'm a simple link</a>

Secondary color

<a class="$$link $$link-secondary">I'm a simple link</a>
<a class="$$link $$link-secondary">I'm a simple link</a>

Accent color

<a class="$$link $$link-accent">I'm a simple link</a>
<a class="$$link $$link-accent">I'm a simple link</a>

Neutral color

<a class="$$link $$link-neutral">I'm a simple link</a>
<a class="$$link $$link-neutral">I'm a simple link</a>

Success color

<a class="$$link $$link-success">I'm a simple link</a>
<a class="$$link $$link-success">I'm a simple link</a>

Info color

<a class="$$link $$link-info">I'm a simple link</a>
<a class="$$link $$link-info">I'm a simple link</a>

Warning color

<a class="$$link $$link-warning">I'm a simple link</a>
<a class="$$link $$link-warning">I'm a simple link</a>

Error color

<a class="$$link $$link-error">I'm a simple link</a>
<a class="$$link $$link-error">I'm a simple link</a>

Show underline only on hover

<a class="$$link $$link-hover">I'm a simple link</a>
<a class="$$link $$link-hover">I'm a simple link</a>
Do you have a question? ask the community
Do you see a bug? open an issue on GitHub
Do you like daisyUI? tweet about it!
Support daisyUI's development: Open Collective
daisyUI store

Official daisyUI
Figma Library

Available on daisyUI store

More details