BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/boldkit/button-group

Button Group

boldkit/button-group
FreeComponent

Visually joins a row or column of buttons into one bordered unit

Live preview

live · rendered by the registry
Rendered by boldkit on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://boldkit.dev/r/button-group.json

Source

registry/default/ui/button-group.tsxboldkit.dev/r/button-group.json
1import * as React from 'react'
2import { cn } from '@/lib/utils'
3
4export interface ButtonGroupProps extends React.HTMLAttributes<HTMLDivElement> {
5 orientation?: 'horizontal' | 'vertical'
6}
7
8/**
9 * Visually joins a row (or column) of Buttons into a single bordered unit:
10 * shared borders collapse, individual shadows/press animations are neutralized,
11 * and the group carries one hard neubrutalism shadow.
12 */
13const ButtonGroup = React.forwardRef<HTMLDivElement, ButtonGroupProps>(
14 ({ className, orientation = 'horizontal', ...props }, ref) => (
15 <div
16 ref={ref}
17 role="group"
18 className={cn(
19 'inline-flex shadow-[4px_4px_0px_hsl(var(--shadow-color))]',
20 // neutralize each child's own shadow + press-translate so the group reads as one block
21 '[&>*]:shadow-none [&>*]:hover:translate-x-0 [&>*]:hover:translate-y-0 [&>*]:active:translate-x-0 [&>*]:active:translate-y-0',
22 orientation === 'horizontal'
23 ? '[&>*:not(:first-child)]:ml-[-3px]'
24 : 'flex-col [&>*:not(:first-child)]:mt-[-3px]',
25 className
26 )}
27 {...props}
28 />
29 )
30)
31ButtonGroup.displayName = 'ButtonGroup'
32
33export { ButtonGroup }

What it pulls in

Other registry items

  • @boldkit/utils
  • @boldkit/button

Files it writes

  • registry/default/ui/button-group.tsx

Facts

Registry
boldkit
Type
registry:ui
Access
Free
Files written
1
Licence
MIT
First indexed
2026-08-03
Last confirmed
today

Go to the source

Docs on boldkit boldkit.dev ANIBIT14/boldkit on GitHub Raw registry item This item as JSON

More from boldkit

All 94 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
AccordionaccordionboldkitComponentsFree2 deps
AlertalertboldkitComponentsFree2 deps
Alert Dialogalert-dialogboldkitComponentsFree1 dep
ASCII Shapesascii-shapesboldkitComponentsFreeno deps
Aspect Ratioaspect-ratioboldkitComponentsFree1 dep
AvataravatarboldkitComponentsFree1 dep
BadgebadgeboldkitComponentsFree1 dep
BreadcrumbbreadcrumbboldkitComponentsFree2 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