Develop ultra fast with Prismane 🎉

SelectField API

Learn about the SelectField component's props and CSS classes.

Import

import { SelectFieldProps } from "@prismane/core";

Props

SelectField extends Field component's props.

NameTypeDescriptionDefault
options{ value: string; element: ReactNode }[]The options of the select field.-
item(chosen: boolean, value: string, element: ReactNode, active: boolean) => ReactNodeFunction that transforms how each item is displayed in the menu of the select field.-

CSS

SelectField extends Field component's CSS classes.

RuleGlobal ClassDescription
root.PrismaneSelectField-rootThe container of the select field component.
item.PrismaneSelectField-itemThe container of the select field item component.
label.PrismaneSelectField-labelThe container of the field label component.
error.PrismaneSelectField-errorThe container of the field error component.