enes

Dropdown Select

import { DropdownSelect } from 'fluentui-svelte';

The Dropdown Select component allows users to select an option from a list. It supports various sizes, disabled states, and customizable options for better user interaction.

This component is available in early access.

The API, features, and behavior of the component are subject to significant changes. We strongly advise against using this component in production environments at this time.

Custom Option Content

Options can render rich content such as a Persona. Provide a text prop for the plain-text selection label.

Multiple Selection

Set the multiple prop to allow selecting more than one option.

Component Props

NameTypeDescription
valuebindable string \| string[]The selected value, or an array of values when multiple is set.
multiplebooleanAllow selecting more than one option.
placeholderstringText shown when no option is selected. Default: 'Native Select Dropdown'.
hidePlaceholderbooleanHides the placeholder option.
refbindable HTMLSelectElementThe DOM reference of the underlying <select> element.
wrapperRefbindable HTMLDivElementThe DOM reference of the wrapper element.
childrenSnippetThe DropdownSelectOption items to render.
NameTypeDescription
valuestringThe value of the option, used for selection.
textstringPlain-text label used to display the selection when the list is closed.
childrenSnippetThe content rendered for the option.