SegmentedField API
Learn about the SegmentedField component's props and CSS classes.Import
import { SegmentedFieldProps } from "@prismane/core";
Props
SegmentedField
extends Field component's props.
Name | Type | Description | Default |
---|---|---|---|
options | { element: ReactNode; value: string; }[] | The options of the segmented field. | - |
CSS
SegmentedField
extends Field component's CSS classes.
Rule | Global Class | Description |
---|---|---|
root | .PrismaneSegmentedField-root | The container of the segmented field component. |
label | .PrismaneSegmentedField-label | The container of the field label component. |
error | .PrismaneSegmentedField-error | The container of the field error component. |