Default
Add a select element with the s-select component and the s-option sub component
Add a select element with the s-select component and the s-option sub component
Change the color of the component with the color property, the allowed values are the main colors of Sax Design and the colors (RGB and HEX)
Add a label to the select easily with the label property, you can also add a label-placeholder which as its name says is a placeholder that encourages label, and finally the placeholder with the placeholder property
Group options within the select with the sub-component s-option-group, as the required prop is the title to add a title to the item group
You can add the functionality of filtering options with the filter property, this property is a boolean so you can add it without any value
Add the functionality of multiple selection of options with the multiple property, this property is a boolean so you can add it without any value
Multiple Selects measure their available width by default and automatically replace tags that do not fit with +N. Set collapse-chips to false to allow tags to wrap; max-collapse-chips is only an optional upper limit.
The value of the select must be an array
Add a loading animation to the select with the loading property, this property is a boolean so you can add it without any value
Change the style of the component to the color passed in the state property, the allowed colors are only the main ones of Sax Design
This property can be used to indicate a missing field to the user or when something is ready.
Add an item below the select showing a message to the user
Use options and option-groups when data arrives from an API. option-props and option-group-props map existing field names; filterable is an alias of filter.
Use popup-config to control panel sizing, trigger-width matching, offset, mount target and custom styles. The first Select uses full to match its trigger; the second combines width and height limits with offset, appendTo, placement, className and style. The demo mounts to body; inside a dialog, replace appendTo with an existing container selector or element.
Use filter-option for matching, highlight-search to mark the matching text and show-selected-mark for a selected indicator.
selection-tools selects, inverts or clears the current filtered results. The footer slot receives counts and bulk actions, with no refresh behavior built in.
When remote pagination or searching replaces options, pass cached-options to retain selected labels. Use header and footer for the two popup regions.
Set pin-key to persist pinned values in local storage. Hover an option to reveal its pin action, or press Ctrl+P on the keyboard-highlighted option. For server persistence, provide get-pin-options, pin-method and unpin-method together. auto-use-option selects the first pinned enabled option, falling back to the first enabled option.
Enable virtual for large flat options arrays. Filtering, keyboard navigation and selected-value caching stay available while only visible rows mount. Dynamic measurement is on by default, so wrapped labels and custom option content may use different row heights; set virtual-config.dynamic to false only for truly fixed rows.