Elemental.Navigation.Link (elemental v0.3.0)
Style Phoenix' link/1
with Daisy's link
class.
Summary
Functions
A passthrough component to Phoenix.Component.link/1
that
sets up the DaisyUI classes needed to style it.
Functions
A passthrough component to Phoenix.Component.link/1
that
sets up the DaisyUI classes needed to style it.
By default Tailwind resets the style of links, this restores the underline to links in the system.
Attributes
color
(:string
) - The color of the link.Must be one of"ghost"
,"neutral"
,"primary"
,"secondary"
,"accent"
,"info"
,"success"
,"warning"
, or"error"
.hover
(:boolean
) - Enable showing the underline on hover only. Defaults tofalse
.navigate
(:string
) - SeePhoenix.Component.link/1
.patch
(:string
) - SeePhoenix.Component.link/1
.href
(:any
) - SeePhoenix.Component.link/1
.replace
(:boolean
) - SeePhoenix.Component.link/1
. Defaults tofalse
.method
(:string
) - SeePhoenix.Component.link/1
. Defaults to"get"
.csrf_token
(:any
) - SeePhoenix.Component.link/1
. Defaults totrue
.- Global attributes are accepted. See
Phoenix.Component.link/1
. Supports all globals plus:["download", "hreflang", "referrerpolicy", "rel", "target", "type"]
.
Slots
inner_block
(required) - The content rendered inside of thea
tag.