Skip to content

Combobox

Composable combobox with anchor, input, content, list, collection, group, label, item, chips, chip-input, value, and empty-state parts.

Selected:

The overlay uses a 100 ms fade and 95% zoom, with a short slide from the trigger side on opening. Both edges expand evenly from a horizontally centered zoom origin. Closing fades and scales it down.

Examples

Compound Composition

Selected:

Virtualized and Paginated Items

Loaded 12 of 120

Accessible Field Label

Use Label with AriaLabelledBy to label the combobox input itself. ComboboxLabel is for labels inside the popup, such as grouped options.

Selected:

Multiple With Chips

Allow Custom Input

Selected:

Static SSR behavior

Default and compound Combobox compositions are progressively enhanced in true static server rendering. The browser owns popup positioning and dismissal, local filtering of shipped options, keyboard navigation, disabled-option skipping, single/multiple selection, and chip removal without a Blazor circuit.

Add name="field-name" to emit browser-managed hidden inputs for native form submission; optional form="form-id" associates them with another form. Static option identity and submitted values use ItemText(item), so keep those strings unique and stable.

Listen for the bubbling, cancelable shardui:combobox-change event for browser-only actions. Its detail includes instanceId, itemId, value, textValue, selected, values, and multiple.

Static filtering can use only items included in the response. Blazor virtualization falls back to those shipped items, while search/load callbacks, later pages, custom-value TextToItemFunc, ValueChanged/ValuesChanged, validation, and Razor rerendering require an interactive renderer. Closed option markup is hidden and inert, not a secrecy boundary.

An unhandled error has occurred. Reload 🗙

    Rejoining the server...

    Rejoin failed... trying again in seconds.

    Failed to rejoin.
    Please retry or reload the page.

    The session has been paused by the server.

    Failed to resume the session.
    Please reload the page.