MeldUI

Switch

A toggle switch control for boolean values with color variants.

Usage

Variants

Props

PropTypeDefaultDescription
modelValueboolean-The switch state. Use with v-model.
variant'default' | 'destructive' | 'success' | 'warning' | 'info' | 'neutral''default'The color variant when checked.
disabledboolean-Whether the switch is disabled.