Velocity X Components

Forms

Toggle Switch Row

Stacked list of labeled on/off switches for notification preferences, built on native checkboxes with zero JS.

Free MIT licensed. Install it with the CLI — no account, no key.
bash
$ velocityx add toggle-switch-row

Built for astro.

Full docs for Toggle Switch Row →

astro v1.0.0
Toggle Switch Row

Email notifications

Props

NameTypeRequiredDefaultDescription
rowsToggleRow[]No[ { name: 'email_updates', label: 'Product updates', description: 'New features and improvements', defaultChecked: true }, { name: 'email_marketing', label: 'Marketing emails', description: 'Tips, offers, and promotions' }, { name: 'email_security', label: 'Security alerts', description: 'Sign-ins and account changes', defaultChecked: true, disabled: true }, ]
headingstringNo'Email notifications'
classNamestringNo''

File this creates

The CLI writes this path into your project, relative to its root — nothing else moves.

text
components/velocity/toggle-switch-row/ToggleSwitchRow.astro

Using the Toggle Switch Row component

Install it with velocityx add toggle-switch-row. The CLI writes the source straight into your project — no runtime dependency, no registry lock-in, and it themes itself from the same primary-*/accent-* scale as the rest of the library.

More from Forms.