Catalog Collaboration

<.toggle_row>

ConnieUI.Collaboration

HEEx
<div class="w-80">
  <ConnieUI.Collaboration.toggle_row click={JS.push("collaboration:toggle")} label="Collaboration active" checked />
</div>

Variant matrix

Every combination of one or two attributes, side by side.

Controls

:string

Set by the example

click

Docs

A switch with its label. `:rest` reaches the switch itself, so `phx-value-*` and a `phx-click` land on the element that was clicked rather than on a wrapper around it. The label is left to `ConnieUI.Buttons.toggle/1`, so it carries the same size and weight as every other switch in the app.
Attribute Type Default Description
label * :string
checked * :boolean
click {:struct, Phoenix.LiveView.JS} nil
disabled :boolean false
rest :global