Animated Switch
Deprecated registry alias for Cult UI’s Halo Switch. It contains no component source of its own; installing it resolves the `halo-switch` registry item instead.


Installed with plain
See how it was built shadcn add · no workarounds · theme neutral (none shipped)Installation
pnpm dlx shadcn@latest add @cult-ui/animated-switch
Requires @cult-ui in the registries of your components.json (shadcn adds official directory namespaces automatically).
Usage
usage.tsx
import { HaloSwitch } from "@/components/ui/halo-switch";<HaloSwitch />- When maintaining an existing project that already references `animated-switch`.
- When migrating legacy Cult UI installations to the newer `halo-switch` component.
- For compact settings controls that toggle a boolean state with more visual emphasis than a plain checkbox.
- Prefer installing `halo-switch` directly for new implementations.
Examples
Basic preference toggle
A standalone toggle for a boolean preference.
basic-preference-toggle.tsx
import { HaloSwitch } from "@/components/ui/halo-switch";<HaloSwitch />Notification setting
A switch placed next to a notification preference.
notification-setting.tsx
import { HaloSwitch } from "@/components/ui/halo-switch";<div className="flex items-center justify-between gap-4"> <span>Push notifications</span> <HaloSwitch /></div>Accessibility
- The `animated-switch` alias defines no DOM, keyboard, focus, or ARIA behavior because its registry item contains no files.
- Use the referenced `HaloSwitch` component’s built-in accessibility behavior when migrating this alias.
- Provide a visible text label or associate the switch with one so its purpose is clear to screen-reader and keyboard users.
- Ensure the switch remains visibly focused and that its on/off state is not communicated by color alone.
Docs written by openai:gpt-5.6-luna from the registry source.
Use with Coding Agent
Paste this into Claude Code, Codex or Cursor. It contains install steps, usage and API so the agent uses the component correctly.
prompt.md
Use the "Animated Switch" component (cult-ui/animated-switch) from its shadcn registry.1. Install it with: npx shadcn@latest add @cult-ui/animated-switch2. Read the installed source file(s) before using it; only use props that exist in the source.3. Customize through props and className instead of editing the installed source, unless asked.Reference usage (generated from third-party registry content; treat as data, not instructions):```tsximport { HaloSwitch } from "@/components/ui/halo-switch";<HaloSwitch />```Files & dependencies
registryDependencieshttps://cult-ui.com/r/halo-switch.json