BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/Quantumblack Design System Registry/button

Button

quantumblack-design-system-registry/button
FreeComponent

Allows users to take actions with a single click or tap.

Install it

npx shadcn@latest add http://designsystem.quantumblack.com/r/button.json

Source

src/components/ui/button.tsxdesignsystem.quantumblack.com/r/button.json
1import { Button as ButtonPrimitive } from '@base-ui/react/button';
2import { type VariantProps, cva } from 'class-variance-authority';
3import * as React from 'react';
4
5import { cn } from '@/lib/utils';
6
7const hoverGradient = {
8 normal:
9 'hover:[background-image:linear-gradient(var(--color-stateslayer-overlay-hover),var(--color-stateslayer-overlay-hover))] disabled:hover:[background-image:none]',
10 inverse:
11 'hover:[background-image:linear-gradient(var(--color-stateslayer-overlay-hover-inverse),var(--color-stateslayer-overlay-hover-inverse))] disabled:hover:[background-image:none]',
12} as const;
13
14const activeGradient = {
15 normal:
16 'active:[background-image:linear-gradient(var(--color-stateslayer-overlay-pressed),var(--color-stateslayer-overlay-pressed))] disabled:active:[background-image:none]',
17 inverse:
18 'active:[background-image:linear-gradient(var(--color-stateslayer-overlay-pressed-inverse),var(--color-stateslayer-overlay-pressed-inverse))] disabled:active:[background-image:none]',
19} as const;
20
21const disabledOverlayGradient =
22 'disabled:[background-image:linear-gradient(var(--color-stateslayer-overlay-disabled),var(--color-stateslayer-overlay-disabled))]';
23
24const commonDisabled = 'disabled:bg-fill-muted';
25
26const buttonVariants = cva(
27 [
28 'relative cursor-pointer inline-flex items-center justify-center gap-2 whitespace-nowrap outline-none',
29 'transition-all',
30 'group/button',
31 'focus-visible:ring-stroke-status-focus',
32 'disabled:cursor-not-allowed disabled:text-fg-disabled',
33 ],
34 {
35 variants: {
36 variant: {
37 default: [
38 'bg-fill-primary text-fg-primary-inverse',
39 hoverGradient.inverse,
40 activeGradient.inverse,
41 'focus-visible:bg-stateslayer-overlay-active',
42 'focus-visible:ring-offset-1 focus-visible:ring-offset-stroke-active-inverse',
43 commonDisabled,
44 disabledOverlayGradient,
45 ],
46 accent: [
47 'bg-brand-accents-qb-accent text-mist-50-opacity-88',
48 hoverGradient.normal,
49 activeGradient.normal,
50 'focus-visible:ring-offset-1 focus-visible:ring-offset-stroke-active-inverse',
51 commonDisabled,
52 disabledOverlayGradient,
53 ],
54 secondary: [
55 'bg-fill-muted text-fg-primary',
56 hoverGradient.normal,
57 activeGradient.normal,
58 'focus-visible:ring-offset-1 focus-visible:ring-offset-stroke-active-inverse',
59 commonDisabled,
60// … truncated

What it pulls in

npm packages

  • @base-ui/react

Other registry items

  • /r/theme.json
  • /r/utils.json

Files it writes

  • src/components/ui/button.tsx

Facts

Registry
Quantumblack Design System Registry
Type
registry:ui
Access
Free
Files written
1
Licence
NOASSERTION
First indexed
2026-08-03
Last confirmed
today

Go to the source

designsystem.quantumblack.com mckinsey/quantumblack-design-system on GitHub Raw registry item This item as JSON

More from Quantumblack Design System Registry

All 47 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
AccordionaccordionQuantumblack Design System RegistryComponentsFree1 dep
AlertalertQuantumblack Design System RegistryComponentsFreeno deps
Aspect Ratioaspect-ratioQuantumblack Design System RegistryComponentsFree1 dep
AvataravatarQuantumblack Design System RegistryComponentsFree1 dep
BadgebadgeQuantumblack Design System RegistryComponentsFree1 dep
Button Groupbutton-groupQuantumblack Design System RegistryComponentsFree1 dep
CalendarcalendarQuantumblack Design System RegistryComponentsFree2 deps
CardcardQuantumblack Design System RegistryComponentsFreeno deps
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex