onChange | Event when selection changes |
onBlur | Event when focus is lost |
onFocus | Event when focus is gained |
name | The HTML name in the form |
selection | The currently selected items |
options | The options to choose from |
placeholder | The placeholder of the search field |
multiple | Whether multiple items can be selected |
disabled | Whether component is disabled |
creatable | Whether new selected items can be created |
removable | Whether selected items are removable |
appendToBody | Whether options append to the body tag (can prevent options from being clipped) |
rightToLeft | Whether to show text from right to left instead |
allowDuplicates | Whether duplicate selection items are allowed |
alwaysReturnArray | Always return an array from onChange, instead of only when multiple |
filterOptions | The function which filters options based on search text |
massageDataIn | The function that massages the props coming in |
massageDataOut | The function massaging the selection returned from the onChange event |
optionKeys | The name of the keys in an option object |
checkRadioMaxCount | The maximum radio buttons allowed before rendering a Select instead |
parseTo | parse value from onChange to a js type: string, number, int, float, boolean |
Text Props | |
text_placeholder | Same as placeholder with a more descriptive name |
text_noOptions | The text shown when there are no options |
text_create | The text shown when a new selection can be created |
Component Props | |
component_Select | Multi/Single select component |
component_CheckRadio | Groups checkbox and radio components |
component_CheckBox | Checkbox component |
component_Radio | Radio button component |
component_Switch | On/Off switch component |
component_HtmlFieldData | Hidden component which keeps current selection in the HTML form |
component_Wrapper | Wraps the entire select component |
component_Selection | Component showing one selected item |
component_SelectionList | List of selected items |
component_OptionList | List of options |
component_Option | Component showing one option |
component_Search | Component responsable for the search text |
component_SelectionWrapper | Displays everything for the Select except the options |
component_OptionsWrapper | Wraps the OptionList |
component_AppendToBodyOptionsWrapper | Appends the OptionList to body tag |
component_StyledAppendToBodyOptionsWrapper | Styleable version of AppendToBodyOptionsWrapper wrapped inside of it |
SVG Props | |
svg_Checkmark | The checkmark image |
svg_Remove | The remove image |
svg_Expand | the expand image |
Style Props | |
styles_fontSize | Controls the entire size of the component |
styles_borderRadius | The amount of curve of the border |
styles_paddingTop | The padding top |
styles_paddingBottom | The padding bottom |
styles_paddingLeft | The padding left |
styles_paddingRight | The padding right |
styles_selection_paddingTop | The selection's padding top |
styles_selection_paddingBottom | The selection's padding bottom |
styles_selection_paddingLeft | The selection's padding left |
styles_selection_paddingRight | The selection's padding right |
styles_selection_margin | The selection's margin |
styles_option_paddingTop | The option's padding top |
styles_option_paddingBottom | The option's padding bottom |
styles_option_paddingLeft | The option's padding left |
styles_option_paddingRight | The option's padding right |
styles_checkRadio_borderWidth | The border width for checkbox, radio, and switch |
styles_checkRadio_marginBetween | The margin between radios and checkboxes |
styles_checkRadio_labelMargin | The margin between the label and it's radio/checkbox/switch |
styles_checkRadio_paddingTop | The padding top for radio/checkbox/switch group |
styles_checkRadio_paddingBottom | The padding bottom for radio/checkbox/switch group |
styles_checkRadio_paddingLeft | The padding left for radio/checkbox/switch group |
styles_checkRadio_paddingRight | The padding right for radio/checkbox/switch group |
styles_search_size | The size of the search component |
styles_icon_width | The width of all icon/SVGs |
styles_colors_primary | The primary color used |
styles_colors_secondary | The secondary color used |
styles_colors_highlight | The color of a highlighted option |
styles_colors_warning | The color of remove selection background |
styles_colors_warningBold | The color of the remove selection icon |
styles_colors_disabled | The color for disabled elements |
styles_colors_background | The background color used |