Switch (Base UI)
iconiq-ui/b-switchFreeComponent
Switch with the same Iconiq API layered over Base UI primitives, preserving the original spring thumb travel, pressure-like squash, and foreground fill sweep.
Install it
npx shadcn@latest add https://www.iconiqui.com/r/b-switch.jsonSource
1"use client";23import { Switch as SwitchPrimitive } from "@base-ui/react/switch";4import {5 animate,6 type MotionValue,7 motion,8 useMotionValue,9 useReducedMotion,10 useTransform,11} from "motion/react";12import * as React from "react";1314import { cn } from "@/lib/utils";1516const componentThemeClassName =17// … truncated
What it pulls in
npm packages
Files it writes
More from Iconiq UI
All 119 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Accordionaccordion | Iconiq UI | Components | Free | 2 deps | |
| AI Inputai-input | Iconiq UI | Components | Free | 3 deps | |
| Alertalert | Iconiq UI | Components | Free | 2 deps | |
| Avataravatar | Iconiq UI | Components | Free | 3 deps | |
| Accordion (Base UI)b-accordion | Iconiq UI | Components | Free | 2 deps | |
| Alert Dialog (Base UI)b-alert-dialog | Iconiq UI | Components | Free | 3 deps | |
| Autocomplete (Base UI)b-autocomplete | Iconiq UI | Components | Free | 3 deps | |
| Avatar (Base UI)b-avatar | Iconiq UI | Components | Free | 2 deps |
