Toggle
A two-state button (aria-pressed).
Outline
Sizes
Rounded
With text
With count
Disabled
API reference
Inputs
| Prop | Type | Default | Description |
|---|---|---|---|
variant | "default" | "outline" | null | 'default' | Visual style: plain or outlined. |
size | "default" | "lg" | "sm" | null | 'default' | Button size. |
Two-way models
Bind with [(name)], or one-way as an input.
| Prop | Type | Default | Description |
|---|---|---|---|
pressed | boolean | false | Whether the toggle is pressed (on). Two-way bindable with `[(pressed)]`. |
disabled | boolean | false | Whether the toggle is disabled. Two-way bindable with `[(disabled)]`. |
Every ng-blatui component also accepts a class input to merge extra Tailwind classes onto the host.