Type Alias: SwitchFieldProps<T>
SwitchFieldProps<
T> =object
Defined in: lib/forms/SwitchField.tsx:12
Props for the SwitchField component.
Type Parameters
T
T extends FieldConfigAtom<boolean>
Properties
className?
optionalclassName:string
Defined in: lib/forms/SwitchField.tsx:14
Additional CSS classes for the container
field
field:
T
Defined in: lib/forms/SwitchField.tsx:20
The field configuration atom
label
label:
string
Defined in: lib/forms/SwitchField.tsx:16
The label text for the switch
labelClassName?
optionallabelClassName:string
Defined in: lib/forms/SwitchField.tsx:18
Additional CSS classes for the label
switchClassName?
optionalswitchClassName:string
Defined in: lib/forms/SwitchField.tsx:22
Additional CSS classes for the switch