ButtonGroup
The props declared for ButtonGroup, generated from the types @proyecto-viviana/ui ships.
Import
import { ButtonGroup } from "@proyecto-viviana/ui";Props
| Prop | Type | Default | Description |
|---|---|---|---|
children | number | boolean | RenderedElement | ArrayElement | (string & {}) | Node | JSX.ArrayElement | — | The Buttons contained within the ButtonGroup. |
orientation | 'horizontal' | 'vertical' | 'horizontal' | The axis the ButtonGroup should align with. |
align | 'start' | 'end' | 'center' | 'start' | The alignment of the Buttons within the ButtonGroup. |
size | 'S' | 'M' | 'L' | 'XL' | 'M' | The size of the Buttons within the ButtonGroup. |
isDisabled | false | true | — | Whether the Buttons in the ButtonGroup are all disabled. |
styles | StyleString | — | Spectrum-defined generated classes. |
UNSAFE_className | string | — | Additional CSS class name. Use only as a last resort. |
UNSAFE_style | JSX.CSSProperties | — | Additional inline styles. Use only as a last resort. |
isHidden | false | true | — | Not yet documented |
Declared in packages/viviana-ui/src/buttongroup/index.tsx.
Props marked solidaria or solidaria-components come from the headless layer underneath and behave the same in both registers. Components that wrap a DOM element also accept that element's standard attributes, which are left out here on purpose — listing them would bury the props that are actually ours.