SegmentedControlProps
Props for SegmentedControl.
This is an interface exported by @mapcairn/map, checked against version 0.2.0.
Signature
import type { SegmentedControlProps } from "@mapcairn/map";
interface SegmentedControlProps
Properties
"data-testid"
readonly "data-testid"?: string;
Applied to the group. Each item gets the same id plus - and its value.
className
readonly className?: string;
Applied to the group element.
disabled
readonly disabled?: boolean;
Stops every item from being chosen and dims the group.
label
readonly label: string;
Accessible name of the group, for example "Theme". Required.
onValueChange
readonly onValueChange: (value: string) => void;
Called with the new value when the user picks a different item.
options
readonly options: readonly SegmentedControlOption[];
The choices, in display order.
value
readonly value: string;
The selected value. The component is controlled and always has a selection.
See also
Source: packages/map/src/ui/SegmentedControl/SegmentedControl.tsx:25