Skip to content
IntelliHelper logo

Intelli UI

FormsLiquid Glass

Switch

Frosted toggle switch with spring-animated thumb. Preview live, copy the source, or install with the CLI into your Next.js project.
npx @intellihelper/cli@latest add switch

Toggle switches

About this component

Switch is part of Forms. Frosted toggle switch with spring-animated thumb.

Install with npx @intellihelper/cli@latest add switch. Files land in your project so you can customize styles, variants, and behavior without a locked package.

Prefer AI-assisted install? Use the agent plugin or the MCP server.

When to use Switch

Use when

  • Use Switch when frosted toggle switch with spring-animated thumb.
  • Collecting user input with labeled fields, selects, checkboxes, or dates.
  • Settings screens that need glass chrome around standard controls.

Avoid when

  • Read-only display of data — use typography or tables.
  • Complex multi-page wizards without a stepper or progress pattern.

Accessibility notes

  • Every control needs a visible label (or aria-label when space is constrained).
  • Associate helper and error text with aria-describedby.
  • Preserve focus order; do not trap keyboard users outside the form.

Interactive primitives build on accessible patterns (including Radix where applicable). Always verify focus order and contrast on your mesh or product background.

Composition tips

  • Stack field + label + description vertically with consistent spacing.
  • Use native-select only when you need zero-JS progressive enhancement.

FAQ

View all forms