shadcn_ui-switch

Implement ShadSwitch and ShadSwitchFormField toggle components in Flutter.

8|Updated Mar 7, 2026
One-click install
npx skills add https://github.com/serverpod/skills-registry --skill shadcn-ui-switch
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: shadcn_ui-switch
Source: https://github.com/serverpod/skills-registry/tree/main/skills/shadcn_ui/shadcn_ui-switch
Command: npx skills add https://github.com/serverpod/skills-registry --skill shadcn-ui-switch

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides pre-built, customizable toggle switch components for Flutter applications using the shadcn_ui library, simplifying the implementation of on/off controls and form fields.

Core Features & Use Cases

  • Standalone Toggle: Easily integrate ShadSwitch for simple on/off functionality with optional labels.
  • Form Integration: Use ShadSwitchFormField for seamless integration into forms, including validation and sub-labels.
  • Use Case: Implement a "Remember Me" toggle in a login form or an "Enable Notifications" switch in user settings.

Quick Start

Add a standalone airplane mode switch to your Flutter app using ShadSwitch.

Frequently Asked Questions about shadcn_ui-switch

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add a toggle switch to a Flutter form using shadcn_ui?

To implement a standalone on/off toggle in Flutter, use the ShadSwitch component from the shadcn_ui library. It provides simple toggle functionality and supports optional labels for standalone use cases outside of complex forms.

Does the shadcn_ui switch component support form validation?

Yes, the shadcn_ui switch component supports form validation via the ShadSwitchFormField widget. This enables you to validate toggle states and provide contextual sub-labels directly within your Flutter application forms.

Can I use ShadSwitch for a simple settings toggle without a form?

Yes, you can use ShadSwitch as a standalone toggle for simple on/off functionality outside of forms. It is designed to easily integrate into Flutter applications for user settings like enabling notifications or toggling airplane mode.

What do I need to use shadcn_ui toggle switches in my app?

You need a Flutter project integrated with the shadcn_ui package. This Skill provides pre-built switch components designed specifically for this library, so your environment must be configured to support shadcn_ui elements.