Related buttons in one frame with a shared hover, or a selector between options.
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.
ButtonGroupdata-slot="button-group"
The frame (or the selector's radiogroup).
ButtonGroupSeparatordata-slot="button-group-separator"
An ink divider.
ButtonGroupTextdata-slot="button-group-text"
A text segment.
components/ui/notchset/button-group.tsx
pnpm dlx shadcn@latest add https://notchset.dev/r/button-group.jsonpnpm dlx shadcn@latest add https://notchset.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 @notchset registry added, @notchset/<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.
Give your coding assistant the Markdown guide instead of screenshots.
https://notchset.dev/api/mcp (setup)v1.0.0 · 2026-10-02
First release