Develop ultra fast with Prismane 🎉

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.

NameTypeDescriptionDefault
options{ element: ReactNode; value: string; }[]The options of the segmented field.-

CSS

SegmentedField extends Field component's CSS classes.

RuleGlobal ClassDescription
root.PrismaneSegmentedField-rootThe container of the segmented field component.
label.PrismaneSegmentedField-labelThe container of the field label component.
error.PrismaneSegmentedField-errorThe container of the field error component.