Configuration object
Name of the field used for state management
Label text or a function that receives params with data and value, returning a promise of label
True or false or a function that receives params with data and value, returning a promise of boolean
True or false or a function that receives params with data and value, returning a promise of boolean
True or false or a function that receives params with data and value, returning a promise of boolean or string
True or false or a function that receives params with data and value, returning a promise of boolean
Basic usage with required props
toggleField({
name: 'notifications',
label: 'Enable notifications',
});
Toggle field component for boolean input. Supports both static and dynamic props based on current state.