Tailwind removes the styling on standard links so we provide an easy way to re-add them. This works very similarly to the link_to helper in Rails.

Basic Links

Basic links are styled with the .link class. The title and href options can be passed as keyword arguments, or as the first two positional arguments.

The title can also be passed as a block.

Preview
Code
.flex.items-end.space-x-4
  = daisy_link title: "Home", href: "#"
  = daisy_link "Docs", "#", css: "link-primary text-xl"
  = daisy_link "Components", "#", css: "link-secondary text-2xl"
  = daisy_link "#", css: "link-success link-hover text-3xl" do
    Big Hover Link
Made with by Profoundry .
Copyright © 2023-2025 Profoundry LLC.
All rights reserved.