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 :atom :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 Attributes
inner_block Required โ€”

Link.link_button

Attributes

Attributes for Link.link_button
NameTypeDefault Values
class :any nil โ€”
href :any nil โ€”
method :atom :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_button
NameRequired Attributes
inner_block Required โ€”