Switch
Props
Name | Type | Default | Description |
---|---|---|---|
label | string | - | The label for the input field. |
name | string | - | The name of component being registered. |
tooltip | string | - | Tooltip content to display additional information about the field. |
isDisabled | boolean | - | Disables the input field when true . |
dataTestId | string | '' | A data-testid attribute for testing purposes. |
Config example
const switchConfig = {
type: 'switch',
data: {
name: 'notifications',
label: 'Enable Notifications',
tooltip: 'Turn on to receive notifications about updates and alerts.',
}
}