API reference: @salmonui/buttons/button
ButtonGroupPropsinterface
import type { ButtonGroupProps } from '@salmonui/buttons/button';interface ButtonGroupProps extends HTMLAttributes<HTMLDivElement> {
children?: ReactNode;
orientation?: 'horizontal' | 'vertical' | undefined;
attached?: boolean | undefined;
variant?: ButtonVariant | undefined;
tone?: ButtonTone | undefined;
size?: ButtonSize | undefined;
disabled?: boolean | undefined;
ref?: Ref<HTMLDivElement> | undefined;
}
| Name | Signature | Description |
|---|---|---|
childrenoptional | children?: ReactNode; | |
orientationoptional | orientation?: 'horizontal' | 'vertical' | undefined; | Layout direction. Default |
attachedoptional | attached?: boolean | undefined; | Joined borders and shared corners. Default |
variantoptional | variant?: ButtonVariant | undefined; | Default |
toneoptional | tone?: ButtonTone | undefined; | Default |
sizeoptional | size?: ButtonSize | undefined; | Default |
disabledoptional | disabled?: boolean | undefined; | Disables every button inside; a button's own |
refoptional | ref?: Ref<HTMLDivElement> | undefined; |