Skip to content
h v3.13.3
Search the docs
Find a component, section or page.

Button Group

A container that groups related buttons together with consistent styling.

Installation

pnpm add @heyramzi/ui

Usage

import * as ButtonGroup from "@heyramzi/ui/shadcn/button-group";

API reference

ButtonGroup.Root

orientation "horizontal" | "vertical"
Default "horizontal"
ref bindable HTMLDivElement | null
Default null
class string
children Snippet
...rest
Every prop of HTMLAttributes<HTMLDivElement> from svelte/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

child Snippet<[{ props: Record<string, unknown> }]>
ref bindable HTMLDivElement | null
Default null
class string
...rest
Every prop of HTMLAttributes<HTMLDivElement> from svelte/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

ref bindable Separator
Default null
class string
orientation string
Default "vertical"
...rest
Every prop of Separator
Prop Type Default
ref bindable Separator null
class string
orientation string "vertical"
...rest Every prop of Separator