BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/aurora/aurora-button-group

Aurora Button Group

aurora-dinglebear-ai/aurora-button-group
UnverifiedComponent

Grouped action container for segmented command clusters and compact toolbar controls.

Install it

npx shadcn@latest add https://raw.githubusercontent.com/dinglebear-ai/aurora/main/aurora-button-group.json

Source

registry/aurora/ui/button-group.tsxraw.githubusercontent.com/dinglebear-ai/aurora/main/aurora-button-group.json
1"use client"
2
3import * as React from "react"
4import { cn } from "@/lib/utils"
5
6/**
7 * Segmented container for related, mutually-exclusive controls. Renders the
8 * shared raised surface and `role="group"`. It does NOT coordinate selection —
9 * pair with `ButtonGroupItem` and manage the pressed state yourself (there is no
10 * `value`/`onValueChange`). Any children work; `ButtonGroupItem` supplies the
11 * ready-made segment styling.
12 */
13export interface ButtonGroupProps extends React.HTMLAttributes<HTMLDivElement> {
14 /** Lay the items in a row (default) or a column. */
15 orientation?: "horizontal" | "vertical"
16}
17
18const ButtonGroup = ({ ref, className, orientation = "horizontal", style, ...props }: ButtonGroupProps & { ref?: React.Ref<HTMLDivElement> }) => (
19 <div
20 ref={ref}
21 role="group"
22 data-orientation={orientation}
23 className={cn(
24 "aurora-btn-group inline-flex border",
25 orientation === "vertical" ? "flex-col" : "items-center",
26 className
27 )}
28 style={{
29 // CD ButtonGroup is a segmented control: shared raised panel-strong
30 // surface (gradient + recessed hairline + inset highlight), 4px gap +
31 // padding, 10px radius — 1:1 with the dsCard container.
32 gap: 4,
33 padding: 4,
34 borderRadius: 10,
35 background:
36 "linear-gradient(180deg, var(--aurora-panel-strong-top), var(--aurora-panel-strong))",
37 borderColor: "color-mix(in srgb, var(--aurora-panel-strong) 72%, #000)",
38 boxShadow: "inset 0 1px 0 rgba(255,255,255,0.04)",
39 ...style,
40 }}
41 {...props}
42 />
43 )
44ButtonGroup.displayName = "ButtonGroup"
45
46/**
47 * A segment inside a `ButtonGroup`. Bare `<button>` with the Aurora segmented
48 * look (idle / hover / selected / focus-visible / disabled) supplied by
49 * `@layer aurora-components` — no hand-rolled inline styles. Drive selection via
50 * the `selected` prop, which sets `aria-pressed`.
51 */
52export interface ButtonGroupItemProps
53 extends React.ButtonHTMLAttributes<HTMLButtonElement> {
54 /** Selected/active segment — sets `aria-pressed` and the lit styling. */
55 selected?: boolean
56}
57
58const ButtonGroupItem = ({ ref, className, selected, type = "button", ...props }: ButtonGroupItemProps & { ref?: React.Ref<HTMLButtonElement> }) => (
59 <button
60 ref={ref}
61 type={type}
62 aria-pressed={selected}
63 className={cn("aurora-btn-group-item", className)}
64 {...props}
65 />
66 )
67// … truncated

What it pulls in

Other registry items

  • @aurora/aurora-tokens
  • @aurora/aurora-components

Files it writes

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

Facts

Registry
aurora
Type
registry:ui
Access
Unverified
Files written
1
Licence
AGPL-3.0
In the index
at or before 2026-08-08
Last confirmed
today

Go to the source

aurora.dinglebear.ai dinglebear-ai/aurora on GitHub Raw registry item This item as JSON

More from aurora

All 176 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Aurora Accordionaurora-accordionauroraComponentsUnverified2 deps
Aurora Alert Dialogaurora-alert-dialogauroraComponentsUnverified2 deps
Aurora Aspect Ratioaurora-aspect-ratioauroraComponentsUnverifiedno deps
Aurora Avataraurora-avatarauroraComponentsUnverified1 dep
Aurora Badgeaurora-badgeauroraComponentsUnverified2 deps
Aurora Banneraurora-bannerauroraComponentsUnverified1 dep
Aurora Breadcrumbaurora-breadcrumbauroraComponentsUnverified2 deps
Aurora Buttonaurora-buttonauroraComponentsUnverified2 deps

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

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

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

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

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

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

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex