Develop ultra fast with Prismane 🎉

SelectField API

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


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


SelectField extends Field component's props.

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.-


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.