BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/indiacn/button-group

Button Group

indiacn/button-group
FreeComponent

Groups related buttons horizontally or vertically with shared borders.

Install it

npx shadcn@latest add https://indiacn.in/r/button-group.json

Source

components/ui/button-group.tsxindiacn.in/r/button-group.json
1import { ComponentProps } from 'react';
2
3import { cn } from '@/lib/utils';
4
5interface IButtonGroupProps extends ComponentProps<'div'> {
6 orientation?: 'horizontal' | 'vertical';
7}
8
9/** Group of related buttons displayed together. */
10function ButtonGroup({ className, orientation = 'horizontal', ...props }: IButtonGroupProps) {
11 return (
12 <div
13 role='group'
14 className={cn(
15 'inline-flex',
16 orientation === 'horizontal'
17 ? '*:rounded-none [&>*:first-child]:rounded-l-md [&>*:last-child]:rounded-r-md [&>*:not(:first-child)]:-ml-px'
18 : 'flex-col *:rounded-none [&>*:first-child]:rounded-t-md [&>*:last-child]:rounded-b-md [&>*:not(:first-child)]:-mt-px',
19 className,
20 )}
21 {...props}
22 />
23 );
24}
25
26/** Toolbar container for button groups. */
27function ButtonToolbar({ className, ...props }: ComponentProps<'div'>) {
28 return (
29 <div role='toolbar' className={cn('flex flex-wrap items-center gap-2', className)} {...props} />
30 );
31}
32
33export { ButtonGroup, ButtonToolbar };

What it pulls in

Other registry items

  • https://indiacn.in/r/theme.json
  • https://indiacn.in/r/button.json

Files it writes

  • components/ui/button-group.tsx

Facts

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

Go to the source

indiacn.in krishnaagarwal1506/Indiacn-ui on GitHub Raw registry item This item as JSON

More from indiacn

All 26 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
AccordionaccordionindiacnComponentsFree2 deps
AlertalertindiacnComponentsFree2 deps
BadgebadgeindiacnComponentsFree1 dep
BreadcrumbbreadcrumbindiacnComponentsFree1 dep
ButtonbuttonindiacnComponentsFree3 deps
CardcardindiacnComponentsFree1 dep
ChipchipindiacnComponentsFree2 deps
CollapsecollapseindiacnComponentsFree1 dep
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