OptionalactiveOptional callback that denotes whether the toggle switch is currently toggle on.
Use this in combination with onChange.
Otherwise, this is handled automatically with the field property.
true for toggled on, false for toggled off
OptionaleditableA callback to determine if the toggle is editable by the current user.
true for editable, false for read-only
OptionalfieldOptional property path for where to save the data.
Typically, this is a flag path, like flags.my-example.is-cursed.
OptionaliconThe FontAwesome icon to show for this toggle.
A unique ID for this toggle.
OptionalitemThe item types which should show this toggle. Excluding this property indicates item types.
The label text to show for this toggle. Supports localization keys.
OptionalonOptional callback to allow handling a change to the toggle value. If a property path is not available, or saving changes requires more work, use this callback.
OptionalvisibleA callback to determine whether the toggle should be visible, based on the item document.
true for editable, false for read-only
A custom toggle switch.