API reference: @salmonui/buttons/button
ToggleButtonGroupSinglePropsinterface
import type { ToggleButtonGroupSingleProps } from '@salmonui/buttons/button';interface ToggleButtonGroupSingleProps extends ToggleButtonGroupBaseProps {
selectionMode?: 'single' | undefined;
value?: string | null | undefined;
defaultValue?: string | null | undefined;
onValueChange?: ((value: string | null, event: ToggleChangeEvent) => void) | undefined;
}
| Name | Signature | Description |
|---|---|---|
selectionModeoptional | selectionMode?: 'single' | undefined; | APG Radio Group: |
valueoptional | value?: string | null | undefined; | |
defaultValueoptional | defaultValue?: string | null | undefined; | |
onValueChangeoptional | onValueChange?: ((value: string | null, event: ToggleChangeEvent) => void) | undefined; | |
childrenoptionalinherited | children?: ReactNode; |
|
orientationoptionalinherited | orientation?: "horizontal" | "vertical"; | Layout and arrow-key axis. Default |
attachedoptionalinherited | attached?: boolean; | Joined borders. Default |
variantoptionalinherited | variant?: ButtonVariant; | Default |
toneoptionalinherited | tone?: ButtonTone; | Default |
sizeoptionalinherited | size?: ButtonSize; | Default |
disabledoptionalinherited | disabled?: boolean; | Disables every item; nothing is submitted while disabled. |
disallowEmptyoptionalinherited | disallowEmpty?: boolean; | Keeps one value selected (single) or at least one (multiple). Default |
nameoptionalinherited | name?: string; | Form field name: one hidden input per selected value. |
refoptionalinherited | ref?: Ref<HTMLDivElement>; |