n-switch
CommunityFlexible, customizable binary toggles for Naive UI.
Authorjiaiyan
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Toggle binary states in Naive UI applications with a configurable switch that supports custom values, loading indicators, and multiple sizes.
Core Features & Use Cases
- Binary on/off toggles with optional loading indicators and support for custom checked/unchecked values.
- Size variants (small, medium, large) and optional content labels or icons for clarity.
- Flexible styling via rail-style and slots for checked/unchecked content or icons.
Quick Start
Add a basic switch to a UI and bind it to a reactive boolean.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: n-switch Download link: https://github.com/jiaiyan/naive-ui-skills/archive/main.zip#n-switch Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.