BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/shadcn/ui full calendar/button-group

Buttons group

shadcn-ui-full-calendar/button-group
FreeComponent

A group of buttons that act as a single component, allowing users to select one or more options.

Install it

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

Source

src/components/ui/button-group.tsxcalendar.jeraidi.dev/r/button-group.json
1import type { VariantProps } from "class-variance-authority";
2import type * as React from "react";
3import { Children, cloneElement, type ReactElement } from "react";
4import type { buttonVariants } from "@/components/ui/button";
5import { cn } from "@/lib/utils";
6
7interface ButtonGroupProps {
8 className?: string;
9 orientation?: "horizontal" | "vertical";
10 children: ReactElement<
11 React.ComponentProps<"button"> &
12 VariantProps<typeof buttonVariants> & {
13 asChild?: boolean;
14 }
15 >[];
16}
17
18export const ButtonGroup = ({
19 className,
20 orientation = "horizontal",
21 children,
22}: ButtonGroupProps) => {
23 const totalButtons = Children.count(children);
24 const isHorizontal = orientation === "horizontal";
25 const isVertical = orientation === "vertical";
26
27 return (
28 <div
29 className={cn(
30 "flex",
31 {
32 "flex-col": isVertical,
33 "w-fit": isVertical,
34 },
35 className,
36 )}
37 >
38 {Children.map(children, (child, index) => {
39 const isFirst = index === 0;
40 const isLast = index === totalButtons - 1;
41
42 return cloneElement(child, {
43 className: cn(
44 {
45 "rounded-s-none": isHorizontal && !isFirst,
46 "rounded-e-none": isHorizontal && !isLast,
47 "border-s-0": isHorizontal && !isFirst,
48
49 "rounded-t-none": isVertical && !isFirst,
50 "rounded-b-none": isVertical && !isLast,
51 "border-t-0": isVertical && !isFirst,
52 },
53 child.props.className,
54 ),
55 });
56 })}
57 </div>
58 );
59};

What it pulls in

Other registry items

  • avatar

Files it writes

  • src/components/ui/button-group.tsx

Facts

Registry
shadcn/ui full calendar
Type
registry:component
Access
Free
Files written
1
Licence
MIT
In the index
at or before 2026-08-10
Last confirmed
today

Go to the source

calendar.jeraidi.dev yassir-jeraidi/full-calendar on GitHub Raw registry item This item as JSON

More from shadcn/ui full calendar

All 6 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Avatar Groupavatar-groupshadcn/ui full calendarComponentsFreeno deps
Date Time Pickerdate-time-pickershadcn/ui full calendarComponentsFreeno deps
Day Pickerday-pickershadcn/ui full calendarComponentsFree2 deps
Responsive modalresponsive-modalshadcn/ui full calendarComponentsFreeno 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