HEEx
<ConnieUI.Collections.toggle id="catalog-collections-toggle-off" on_toggle={%Phoenix.LiveView.JS{ops: []}} />
Variant matrix
Every combination of one or two attributes, side by side.
Controls
Set by the example
on_toggle
Docs
A toggle switch that pushes `on_toggle` when clicked, not tied to a form field.
| Attribute | Type | Default | Description |
|---|---|---|---|
| No data found. | |||
| id * | :string |
|
|
| checked | :boolean | false |
|
| on_toggle * | {:struct, Phoenix.LiveView.JS} |
|
|
| size | :string | "sm" |
sm | md
|
| disabled | :boolean | false |
|