Simal UI
Components

Toggle

A themed Switch — the on-state track picks up the primary colour.

Import

import { Toggle } from '@simal/ui/nativewindui';

Props

PropValuesDefaultDescription
valuebooleantrueWhether the switch is on. Always controlled — pair it with onValueChange or it will not move.
onValueChangeFired with the next value when the user flips the switch.
disabledbooleanfalseBlocks interaction. The platform dims the control; there is no separate style hook.

Examples

States

In A Settings Row

On this page