Button Group
A container that groups related buttons together with consistent styling.
Installation
pnpm add @heyramzi/uiUsage
import * as ButtonGroup from "@heyramzi/ui/shadcn/button-group";API reference
ButtonGroup.Root
orientation"horizontal" | "vertical"- Default
"horizontal" refbindableHTMLDivElement | null- Default
null classstringchildrenSnippet...rest- Every prop of
HTMLAttributes<HTMLDivElement>fromsvelte/elements
| Prop | Type | Default |
|---|---|---|
orientation | "horizontal" | "vertical" | "horizontal" |
ref bindable | HTMLDivElement | null | null |
class | string | |
children | Snippet | |
...rest | Every prop of HTMLAttributes<HTMLDivElement> from svelte/elements | |
ButtonGroup.Text
childSnippet<[{ props: Record<string, unknown> }]>refbindableHTMLDivElement | null- Default
null classstring...rest- Every prop of
HTMLAttributes<HTMLDivElement>fromsvelte/elements
| Prop | Type | Default |
|---|---|---|
child | Snippet<[{ props: Record<string, unknown> }]> | |
ref bindable | HTMLDivElement | null | null |
class | string | |
...rest | Every prop of HTMLAttributes<HTMLDivElement> from svelte/elements | |
ButtonGroup.Separator
refbindableSeparator- Default
null classstringorientationstring- Default
"vertical" ...rest- Every prop of
Separator
| Prop | Type | Default |
|---|---|---|
ref bindable | Separator | null |
class | string | |
orientation | string | "vertical" |
...rest | Every prop of Separator | |