Toggle

A two-state button (aria-pressed).

Outline

Sizes

Rounded

With text

With count

Disabled

API reference

Inputs

PropTypeDefaultDescription
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.

PropTypeDefaultDescription
pressedbooleanfalseWhether the toggle is pressed (on). Two-way bindable with `[(pressed)]`.
disabledbooleanfalseWhether 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.