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.
Button Group
quantumblack-design-system-registry/button-groupRemovedComponent
Groups related buttons together with a constant 12px QBDS gap. Supports horizontal and vertical orientation.
Install it
npx shadcn@latest add http://designsystem.quantumblack.com/r/button-group.jsonSource
1import { type VariantProps, cva } from 'class-variance-authority';2import type * as React from 'react';34import { cn } from '@/lib/utils';56const buttonGroupVariants = cva('flex w-fit gap-3', {7 variants: {8 orientation: {9 horizontal: 'flex-row items-center',10 vertical: 'flex-col items-stretch',11 },12 },13 defaultVariants: {14 orientation: 'horizontal',15 },16});1718interface ButtonGroupProps19 extends20 React.ComponentProps<'div'>,21 VariantProps<typeof buttonGroupVariants> {}2223/**24 * Groups related buttons together with consistent QBDS spacing.25 *26 * Place `Button` children inside and choose their variants (e.g. a primary27 * action paired with a secondary or ghost action). The group only controls28 * layout: `orientation` for direction with a constant 12px gap. Size the29 * child `Button`s directly.30 *31 * @example32 * ```tsx33 * <ButtonGroup>34 * <Button variant="default">Save</Button>35 * <Button variant="ghost">Cancel</Button>36 * </ButtonGroup>37 * ```38 */39function ButtonGroup({ className, orientation, ...props }: ButtonGroupProps) {40 return (41 <div42 data-slot="button-group"43 role="group"44 className={cn(buttonGroupVariants({ orientation }), className)}45 {...props}46 />47 );48}4950export { ButtonGroup, buttonGroupVariants, type ButtonGroupProps };
What it pulls in
npm packages
Other registry items
