Link

New

Overview

Use a link whenever you navigate to a new page or patch the current LiveView.

Add this module

terminal
mix dizzy.add link

Component API

Link.link

Attributes

Attributes for Link.link
NameTypeDefault Values
class :any nilโ€”
color :atom :current:current, :blue, :muted
href :any nilโ€”
method :string "get""get", "head", "post", "put", "patch", "delete", "options", "connect", "trace"
navigate :string nilโ€”
patch :string nilโ€”
replace :boolean falseโ€”
rest :global nilโ€”

Slots

Slots for Link.link
NameRequired
inner_block Required

Link.link_button

Attributes

Attributes for Link.link_button
NameTypeDefault Values
class :any nilโ€”
href :any nilโ€”
kind :atom :primary:primary, :secondary, :outline, :ghost, :destructive
method :string "get""get", "head", "post", "put", "patch", "delete", "options", "connect", "trace"
navigate :string nilโ€”
patch :string nilโ€”
replace :boolean falseโ€”
rest :global nilโ€”
size :atom :lg:xs, :sm, :md, :lg, :icon_xs, :icon_sm, :icon, :icon_lg

Slots

Slots for Link.link_button
NameRequired
inner_block Required

Explore Dizzy