Built-in Schema Fields
LightswitchField
Basic Usage
Use LightswitchField when the schema needs a simple boolean toggle.
Registry
- Key:
lightswitch - Module:
src/forms/fields/LightswitchField.tsx
Role in SchemaForm
Boolean toggle using Lightswitch component + FieldLayout, storing true / false (or empty) in the form store per binding logic.
Example schema
json
{
"$field": "lightswitch",
"name": "enabled",
"label": "Enabled"
}Related
- Plain component docs: Lightswitch
Edit this page
Last updated: May 22, 2026, 6:53 PM