Type Alias: SwitchAtomProps<A>
SwitchAtomProps<
A> =object
Defined in: lib/state-management/SwitchAtom.tsx:10
Props for the SwitchAtom component.
Type Parameters
A
A extends WritableAtom<boolean | Promise<boolean>, any, any>
Properties
atom
atom:
A
Defined in: lib/state-management/SwitchAtom.tsx:18
The writable atom to bind to
className?
optionalclassName:string
Defined in: lib/state-management/SwitchAtom.tsx:12
Additional CSS classes for the container
disabled?
optionaldisabled:boolean
Defined in: lib/state-management/SwitchAtom.tsx:22
Whether the switch is disabled
label
label:
string
Defined in: lib/state-management/SwitchAtom.tsx:14
The label text for the switch
labelClassName?
optionallabelClassName:string
Defined in: lib/state-management/SwitchAtom.tsx:16
Additional CSS classes for the label
switchClassName?
optionalswitchClassName:string
Defined in: lib/state-management/SwitchAtom.tsx:20
Additional CSS classes for the switch