MultiComboboxList
A searchable, multi-value option list with checkboxes and no trigger of its own — embed it inline inside a Popover, Drawer, or panel you already control.
MultiComboboxList is MultiSelect's data contract without the trigger or the pills: a search box and a checkbox list that render permanently open, for embedding inside a container you already own the visibility of (a Popover, a Drawer, a custom panel). Picking an option toggles its checkbox without closing the list — same idea as ComboboxList, just for several values at once. It's what powers DataTable's multi-select column filter.
'use client';
import { MultiComboboxList } from '@42-central/ui-react/multi-combobox-list';
<MultiComboboxList data={['Libft', 'ft_printf', 'Get Next Line']} defaultValue={['Libft']} />For a self-contained trigger with pills in the field, use MultiSelect instead — same data / value / onChange contract. For the single-value equivalent see ComboboxList.
The playground below renders the list bare, on the page — in real use it almost always sits inside something else that owns the open/close state (see ComboboxList's Popover example).
Playground
Component
Dir
Presets
Props
Code
<Component placeholder="Search…" size="md" />Checkboxes, not pills
Every option shows a checkbox instead of a check mark; picking one adds it to the selection and keeps the list open so you can keep picking. data accepts the same shapes as MultiSelect — strings, objects, or groups.
Hide picked options
With hidePickedOptions, chosen values drop out of the list so it only ever shows what's still addable.
Max values
maxValues caps the selection — once reached, adding more is rejected (removals still work).
Clearable
clearable adds a button that clears every value at once.
Icons
icons replaces the search row's magnifier (search) and clear × (clear), and the selected option's check (check). A missing key keeps its default, and search: null drops the magnifier. A renderItem row draws its own affordance, so check doesn't reach it. Your icons are drawn as given: add className={iconStroke} (from @42/ui-react) for the kit's 1.5px line.
Code
<MultiComboboxList
data={["Paris", "Lyon", "Nice", "Le Havre"]}
defaultValue={["Lyon", "Nice"]}
clearable
icons={{ search: <Filter className={iconStroke} />, clear: <Eraser className={iconStroke} />, check: <Heart className={iconStroke} /> }}
/>Custom rendering
renderItem owns each row's whole content — the same (item, state) => ReactNode renderer as Select's, with item being { value, label, disabled } and state { selected, highlighted }. It fully replaces the default checkbox + label row, so if you still want a selected affordance, draw your own from state.selected.
Label, description & error
Built in via Field, like the rest of the family — though most of the time you'll omit them here, since the container embedding this (a filter popover, a drawer) usually carries its own label.
Controlled
value is a string[]; onChange hands you the full selection on every add or remove.
'use client';
import { useState } from 'react';
import { MultiComboboxList } from '@42-central/ui-react/multi-combobox-list';
export function ProjectList() {
const [value, setValue] = useState<string[]>([]);
return (
<MultiComboboxList
data={['Libft', 'ft_printf', 'Get Next Line']}
value={value}
onChange={setValue}
clearable
/>
);
}Forms
A name renders one hidden input per selected value, so it wires into native <form> submission and FormData — the search input itself is never named (it would submit the typed query, not the selection).
<form action={save}>
<MultiComboboxList name="projects" data={['Libft', 'ft_printf', 'Get Next Line']} />
</form>API
Prop
Type
Accessibility
- Full combobox keyboard model from Ark: type to filter (accent- and case-insensitive for the locale: "ele" finds "Éléphant"),
↑/↓to move,Enterto toggle an option,Eschandled by the embedding container. role="combobox"on the search input witharia-expanded="true"(it is permanently open),role="option"witharia-selectedon each row,aria-multiselectableon the list.- There's no trigger and no floating panel — accessibility for the open/close affordance (focus return,
Eschandling,aria-haspopup) is the embedding container's job (e.g.Popoveralready provides it).
Changelog
- #407
renderItem'sitem.payloadis typedPayload | undefined, as it always was at runtime for strings and payload-less items: guard it withitem.payload?.x - #361
Swap any built-in icon through an
iconsmap —icons={{ asc, desc }}on DataTable,icons={{ show, hide }}on PasswordInput; a key you leave out keeps the kit's icon, and a part'schildrenstill win - #387
Search ignores accents and case the way the locale does: "ele" finds "Éléphant", and Turkish İ/ı match
- #96
Inputs drop the
filledvariant and thecolorprop
- #37
Borders and dividers on floating panels match the panel's own surface
- #34
nothingFound→emptyacross the pickers and combobox lists
- #11
New
ComboboxListandMultiComboboxList: always-open, inline single- and multi-select lists