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.
Select
quantumblack-design-system-registry/selectRemovedComponent
A select component with single and multiple selection support.
Install it
npx shadcn@latest add http://designsystem.quantumblack.com/r/select.jsonSource
1'use client';23import { Select as SelectPrimitive } from '@base-ui/react/select';4import * as React from 'react';56import { Icon } from '@/components/ui/icon';7import { cn } from '@/lib/utils';89export type SelectSize = 'sm' | 'default' | 'lg';1011interface SelectSizeContextValue {12 size?: SelectSize;13}1415const SelectSizeContext = React.createContext<16 SelectSizeContextValue | undefined17>(undefined);1819const useSelectSizeContext = () => {20 return React.useContext(SelectSizeContext);21};2223type SelectProps = React.ComponentProps<typeof SelectPrimitive.Root> & {24 /**25 * The size of the select and its items.26 * @default "default"27 */28 size?: SelectSize;29};3031/**32 * Select component for choosing from a list of options.33 *34 * Built on Base UI Select primitive. Supports single and multiple selection35 * via the `multiple` prop.36 *37 * @example38 * ```tsx39 * <Select items={items}>40 * <SelectTrigger>41 * <SelectValue placeholder="Pick one" />42 * </SelectTrigger>43 * <SelectContent>44 * <SelectItem value="a">Option A</SelectItem>45 * <SelectItem value="b">Option B</SelectItem>46 * </SelectContent>47 * </Select>48 * ```49 */50function Select({ size = 'default', children, ...props }: SelectProps) {51 return (52 <SelectSizeContext.Provider value={{ size }}>53 <SelectPrimitive.Root data-slot="select" {...props}>54 {children}55 </SelectPrimitive.Root>56 </SelectSizeContext.Provider>57 );58}5960function SelectValue(props: SelectPrimitive.Value.Props) {61 return <SelectPrimitive.Value data-slot="select-value" {...props} />;62}6364function SelectIcon({ className, ...props }: SelectPrimitive.Icon.Props) {65 const sizeContext = useSelectSizeContext();66 const size = sizeContext?.size ?? 'default';6768 return (69 <SelectPrimitive.Icon70 data-slot="select-icon"71 className={cn(72 'text-fill-active shrink-0 opacity-60',73 '[[data-disabled]>&]:opacity-30',74 size === 'lg' ? 'size-6' : 'size-4',75 className,76 )}77 {...props}78 />79 );80}8182function SelectTrigger({83 className,84 children,85 ...props86}: SelectPrimitive.Trigger.Props) {87 const sizeContext = useSelectSizeContext();88 const size = sizeContext?.size ?? 'default';8990 return (91 <SelectPrimitive.Trigger92 data-slot="select-trigger"93 className={cn(94 'relative flex w-fit items-center justify-between whitespace-nowrap',95 'bg-fill-onsurface-ui-3 transition-all outline-none',96 'border border-transparent',97// … truncated
What it pulls in
npm packages
Other registry items
