A flexible link component that renders as <a>, <.link patch>, <.link navigate>, or <button>.
Usage
alias PtahUi.Components.FlexLink, as: Link
<Link.a link_type="live_patch" to={~p"/users"}>Users</Link.a>
<Link.a link_type="button" phx-click="do_something">Click</Link.a>
Summary
Functions
Attributes
class(:any) - Defaults tonil.link_type(:string) - Defaults to"a".label(:string) - Defaults tonil.to(:string) - Defaults tonil.method(:string) - Defaults tonil.disabled(:boolean) - Defaults tofalse.- Global attributes are accepted. Supports all globals plus:
["download", "hreflang", "referrerpolicy", "rel", "target", "type"].
Slots
inner_block