This component no longer exists. It was in Quantumblack Design System Registry’s manifest when we first indexed it and is not there now — the registry served its inventory on 2026-08-08 and this item was not on it. The install command below will fail. It is kept here because a tutorial somewhere still tells people to run it.
Toggle
quantumblack-design-system-registry/toggleRemovedComponent
A toggle component.
Install it
npx shadcn@latest add http://designsystem.quantumblack.com/r/toggle.jsonSource
1'use client';23import { Toggle as TogglePrimitive } from '@base-ui/react/toggle';45import { buttonVariants } from '@/components/ui/button';6import { cn } from '@/lib/utils';78type ToggleVariant = 'secondary' | 'outline' | 'ghost';9type ToggleSize =10 | 'xxs'11 | 'xs'12 | 'sm'13 | 'default'14 | 'lg'15 | 'icon-xxs'16 | 'icon-xs'17 | 'icon-sm'18 | 'icon'19 | 'icon-lg';2021function toggleVariants({22 variant = 'secondary',23 size = 'default',24 className,25}: {26 variant?: ToggleVariant;27 size?: ToggleSize;28 className?: string;29} = {}) {30 return cn(31 buttonVariants({ variant, size }),32 'data-pressed:bg-fill-active data-pressed:text-fg-primary-inverse',3334 variant === 'outline' &&35 'data-pressed:border-stroke-active-inverse data-pressed:border-2',3637 className,38 );39}4041function Toggle({42 className,43 variant = 'secondary',44 size = 'default',45 ...props46}: TogglePrimitive.Props & {47 variant?: ToggleVariant;48 size?: ToggleSize;49}) {50 return (51 <TogglePrimitive52 data-slot="toggle"53 className={cn(toggleVariants({ variant, size }), className)}54 {...props}55 />56 );57}5859export { Toggle, toggleVariants, type ToggleVariant, type ToggleSize };
What it pulls in
npm packages
Other registry items
