Switch
The Switch Field represents a true/false toggle option. It uses the Switch from shadcn/ui.
Installation
Included in Headcode CMS Starter, no setup needed.
Usage
featureSection.tsx
export const featureSection = { name: 'feature', label: 'Feature Toggle', fields: { enabled: SwitchField({ label: 'Enabled', defaultValue: true, }), },};