# UI Switch — component for app & ui mockups (remotion)

> **For AI agents:** find the right skill in one call — `curl -s "https://skills.varg.ai/api/search?q=<what the person wants>"` returns the matching use case and the best skills with install commands, as markdown (Russian works too). Full index: https://skills.varg.ai/llms.txt. Every page has a markdown twin: add `.md` to its path. Before generating anything, show the person the options on the use-case page.

A switch whose checked/unchecked state is a pure function of the timeline; the track fill and sliding thumb are keyframed presets.

- **Install:** `npx shadcn@latest add @remocn/switch`
- **Installs first:** remocn-ui
- **Registry:** remocn · **Framework:** remotion · **License:** MIT
- **Docs and preview:** https://remocn.dev/docs/ui/components/switch
- **Source:** https://remocn.dev/r/switch.json
- **Runs:** local render, free
- **Aspect:** any

## Slots (what you fill in)

- `label` (string)
- `size` (string)
- `state` (string)
- `primary` (string)

## Used in

- [Product launch film](https://skills.varg.ai/video/product-launch.md)
- [Feature announcement](https://skills.varg.ai/video/feature-announcement.md)
- [App promo & App Store preview](https://skills.varg.ai/video/app-promo.md)
- [Notes-app ad](https://skills.varg.ai/video/notes-ad.md)
- [Changelog & release notes](https://skills.varg.ai/video/changelog.md)
- [Pull request to video](https://skills.varg.ai/video/pr-video.md)
- [Code walkthrough](https://skills.varg.ai/video/code-walkthrough.md)
- [Website to video](https://skills.varg.ai/video/website-to-video.md)

## More app & ui mockups

- [Apple Notes Video](https://skills.varg.ai/component/varg.apple-notes-video.md) — `git clone https://github.com/vargHQ/code2video-templates && cd code2video-templates/apple-notes-video && bun install`
- [Avatar Group Hover](https://skills.varg.ai/component/hf.avatar-group-hover.md) — `npx hyperframes add avatar-group-hover`
- [Camera Scan Gate](https://skills.varg.ai/component/hf.camera-scan-gate.md) — `npx hyperframes add camera-scan-gate`
- [Card Resize](https://skills.varg.ai/component/hf.card-resize.md) — `npx hyperframes add card-resize`
- [Dynamic Grid](https://skills.varg.ai/component/hf.dynamic-grid.md) — `npx hyperframes add dynamic-grid`
- [Focus Swap](https://skills.varg.ai/component/hf.focus-swap.md) — `npx hyperframes add focus-swap`
