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.
Label
quantumblack-design-system-registry/labelRemovedComponent
A component that displays a label for form elements.
Install it
npx shadcn@latest add http://designsystem.quantumblack.com/r/label.jsonSource
1'use client';23import { type VariantProps, cva } from 'class-variance-authority';4import * as React from 'react';56import { cn } from '@/lib/utils';78const labelVariants = cva(9 'flex items-center font-normal gap-1 select-none data-[disabled=true]:pointer-events-none group-data-[disabled=true]:pointer-events-none peer-disabled:cursor-not-allowed',10 {11 variants: {12 size: {13 sm: 'label-small-primary',14 default: 'label-regular-primary',15 lg: 'label-large-primary',16 },17 disabled: {18 false: 'text-fg-secondary',19 true: 'text-fg-disabled cursor-not-allowed',20 },21 },22 defaultVariants: {23 disabled: false,24 size: 'default',25 },26 },27);2829export interface LabelProps30 extends31 React.ComponentPropsWithoutRef<'label'>,32 VariantProps<typeof labelVariants> {}3334function Label({ className, size, disabled, ...props }: LabelProps) {35 return (36 <label37 className={cn(labelVariants({ size, disabled }), className)}38 data-slot="label"39 data-disabled={disabled ? true : undefined}40 {...props}41 />42 );43}4445export { Label, labelVariants };
What it pulls in
Other registry items
