Function: SwitchAtom()
SwitchAtom<
A>(props):Element
Defined in: lib/state-management/SwitchAtom.tsx:34
A component that renders a switch input bound to a Jotai atom. The switch state is controlled by the atom's value.
Type Parameters
A
A extends WritableAtom<boolean | Promise<boolean>, any, any, A>
Parameters
props
The component props
Returns
Element
A switch component with label