enes

Dropdown Select

import { DropdownSelect } from 'fluentui-svelte';

El componente Dropdown Select permite a los usuarios seleccionar una opción de una lista. Admite varios tamaños, estados deshabilitados y opciones personalizables para mejorar la interacción del usuario.

Este componente está disponible en acceso anticipado.

La API, las características y el comportamiento del componente están sujetos a cambios significativos. Recomendamos encarecidamente no usar este componente en entornos de producción por el momento.

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.