Auxx.ai

<Switch />

Toggle switch component for Auxx app dialogs.

A toggle switch for on/off states.

import { Switch, Label } from '@auxx/sdk/client'

<Switch checked={enabled} onChange={(checked) => setEnabled(checked)} />
<Label>Enable notifications</Label>

Props

PropTypeDefaultDescription
checkedboolean?falseWhether the switch is on
disabledboolean?falseDisable the switch
onChange(checked: boolean) => voidCalled with the new state

On this page