SegmentedControlOption
One choice in a SegmentedControl.
This is an interface exported by @mapcairn/map, checked against version 0.2.0.
Signature
import type { SegmentedControlOption } from "@mapcairn/map";
interface SegmentedControlOption
Properties
icon
readonly icon?: ReactNode;
Optional decorative icon shown before the label. It is hidden from assistive technology.
label
readonly label: string;
The visible text, which is also the item's accessible name.
lang
readonly lang?: string;
The BCP 47 language the label is written in, when it differs from the page's, so assistive technology reads it in that language.
value
readonly value: string;
The value reported through onValueChange when this item is chosen.
Source: packages/map/src/ui/SegmentedControl/SegmentedControl.tsx:10