shadcn's Button Group in Notchset (buttons joined in one ink frame), and with items, the instrument selector: an ink block travels under the labels and the chosen node lights after it lands.
pnpm dlx shadcn@latest add https://beautiful-ui.dev/r/button-group.jsonpnpm dlx shadcn@latest add https://beautiful-ui.dev/r/radix-nova/button-group.jsonFree, no account or key. Use the command for your project's primitives: a radix-*, new-york or default style in components.json is Radix, a base-* style is Base UI. With the @beautiful-ui registry added, @beautiful-ui/<name> picks for you.
pnpm add @base-ui/react@^1 class-variance-authority@^0.7The CLI adds the styles to the CSS file named in components.json (tailwind.css). Check that it points at your global stylesheet, that the project uses Tailwind CSS v4, and that the file is imported in your root layout. Installed by hand: paste styles.css into that file.
Import it and pass your content. The props that matter most are listed next.
"use client";
import * as React from "react";
import { ButtonGroup } from "@/components/ui/notchset/button-group";
export function RangePicker() {
const [range, setRange] = React.useState("7D");
return (
<ButtonGroup
aria-label="Range"
items={[
{ value: "24H", label: "24H" },
{ value: "7D", label: "7D" },
{ value: "30D", label: "30D" },
]}
value={range}
onValueChange={setRange}
/>
);
}items–
{ value, label }[]Makes it the selector. Without items it is shadcn's ButtonGroup.
value / defaultValue / onValueChange–
string / (value) => voidThe selected item.
nodes–
booleanThe nodes above the segments. Default true.
segment–
numberSegment width in px. Default 56.
orientation–
"horizontal" | "vertical"As shadcn; the selector stacks vertically too.
components/ui/notchset/button-group.tsx