
mantine-combobox
Build custom dropdown/select/autocomplete/multiselect components using Mantine's Combobox primitives. Use this skill when: (1) creating a new custom select-like component with Combobox primitives, (2) building a searchable dropdown, (3) implementing a multi-select or tags input variant, (4) customizing option rendering, (5) adding custom filtering logic, or (6) any task involving useCombobox, Combobox.Target, Combobox.Option, or Combobox.Dropdown.
- Installs
- 3.5K
- Last 24h
- +32
- Trending rank
- #4236
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/mantinedev/skills --skill mantine-combobox- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads mantine-combobox automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
Mantine Combobox Skill
Written for Mantine 9.x.
Overview
Combobox provides low-level primitives for building any select-like UI. The built-in
Select, MultiSelect, Autocomplete, and TagsInput components are all built on top of it.
Check for a ready-made component first
Build with Combobox primitives only when none of these fit:
| Need | Use |
|---|---|
| Standard select, multi-select, autocomplete or tags input | Select, MultiSelect, Autocomplete, TagsInput (all support renderOption) |
| Options dropdown attached to a button or any other element, no input | ComboboxPopover (data-driven: data, value, onChange, searchable, multiple) |
| Hierarchical options | TreeSelect (see below) |
| More than a few hundred options | Combobox with useVirtualizedCombobox, see the virtualized pattern |
<ComboboxPopover data={['React', 'Angular', 'Vue']} value={value} onChange={setValue}>
<ComboboxPopover.Target>
<Button variant="default">{value || 'Select framework'}</Button>
</ComboboxPopover.Target>
</ComboboxPopover>
ComboboxPopover opens on target click by itself, marks the selected option with a check icon and
handles keyboard navigation. Useful props: searchable, multiple (value becomes string[], the
dropdown stays open while picking), allowDeselect={false} (one option is always selected),
nothingFoundMessage, renderOption, limit, maxDropdownHeight, name (hidden input for forms),
comboboxProps={{ width: 220, position: 'bottom-start' }}. data supports disabled items and groups
like Select: [{ group: 'Size', items: [{ value: 'xs', label: 'XS' }] }]. It cannot render custom dropdown content (tabs, header, footer, create actions): use
Combobox primitives for that.
TreeSelect takes nested data ({ value, label, children? }[], unique values) and renders an
input with an expandable tree in the dropdown. Props include mode (single, multiple, or checkbox
with parent-child cascade), searchable, clearable, renderNode. Build the tree from Combobox
primitives instead when you need a different layout: only leaves selectable, a flat list of search
results with full paths, or a button trigger. In that case render every visible row as a
Combobox.Option and decide in onOptionSubmit whether the row selects or expands.
Core Workflow
1. Create the store
const combobox = useCombobox({
onDropdownClose: () => combobox.resetSelectedOption(),
onDropdownOpen: () => combobox.selectFirstOption(),
});
2. Render structure
<Combobox store={combobox} onOptionSubmit={handleSubmit}>
<Combobox.Target targetType="button">
<InputBase
component="button"
type="button"
pointer
rightSection={<Combobox.Chevron />}
onClick={() => combobox.toggleDropdown()}
>
{value || <Input.Placeholder>Pick value</Input.Placeholder>}
</InputBase>
</Combobox.Target>
<Combobox.Dropdown>
<Combobox.Options>
{options.map((item) => (
<Combobox.Option value={item} key={item}>{item}</Combobox.Option>
))}
</Combobox.Options>
</Combobox.Dropdown>
</Combobox>
3. Handle submit
const handleSubmit = (val: string) => {
setValue(val);
combobox.closeDropdown();
};
Target Types
| Scenario | Use |
|---|---|
| Button trigger (no text input) | <Combobox.Target targetType="button"> |
| Input trigger | <Combobox.Target> (default) |
| Pills + separate input (multi-select) | <Combobox.DropdownTarget> + <Combobox.EventsTarget> |
What Combobox does for you
- The target handles keyboard: ArrowUp/ArrowDown move the highlight and skip disabled options (and
open the dropdown when it is closed), Enter submits the highlighted option, Escape closes the
dropdown. With
targetType="button", Space and Enter also open it. Tab is not handled. - Enter does nothing when no option is highlighted, so a free-text input can handle it itself.
- Nothing is highlighted until the user presses an arrow key, unless you call
selectFirstOption()orselectActiveOption(). - Clicking an option does not move focus away from the input, and a disabled option never calls
onOptionSubmit. Combobox.Optionforwardsdata-*attributes and event handlers to its element.Combobox.Searchhandles the same keys as the target. Your ownonKeyDownon the target child or onCombobox.Searchis called first, then the built-in handling runs, so extra keys (PageUp, ArrowRight) can be added there. To take the keyboard over completely (a textarea, where arrows must move the caret), setwithKeyboardNavigation={false}onCombobox.Targetand callselectNextOption,selectPreviousOptionandclickSelectedOptionyourself.- Defaults: the dropdown is as wide as the target (
width="target"), rendered in a portal, kept mounted while closed, opens without animation, and hovering an option does not change the keyboard highlight. - The dropdown renders in a portal above modals and drawers and is not clipped by them. Inside a
Modal, Escape closes only the dropdown; a second Escape closes the modal. No extra code is needed. - An option does not have to select a value:
onOptionSubmitcan toggle, expand a row or run an action, and decides itself whether to close the dropdown. - Other interactive content in the dropdown (buttons in
Combobox.Header, a Retry link) is not handled: addonMouseDown={(event) => event.preventDefault()}to it so the input keeps focus and anonBlurhandler does not close the dropdown.
Two words that are easy to mix up:
- selected option: the one highlighted by keyboard navigation (
data-combobox-selected). - active option: the one that holds the current value, marked with the
activeprop (data-combobox-active). It has no styles by default: render a check icon.
References
Read both before building anything beyond the basic select above:
references/patterns.md— complete examples: searchable select (input trigger), free-text input with suggestions, suggestions for a textarea (mentions), custom styles with a CSS module, virtualized list for thousands of options, custom form input built on Combobox, search inside the dropdown, multi-select with pills, creatable option, async search with loading and error states, groups, custom option rendering, highlighting the current value on open, clear button, form integration, dropdown that fits the viewportreferences/api.md—useComboboxoptions and every store method with what it does, default styles and how to override them,useVirtualizedCombobox, all sub-component props, CSS variables, Styles API selectors
Looking things up
If the references do not cover what you need, do not guess:
- If the Mantine MCP server (
@mantine/mcp-server) is connected, usesearch_docsandget_item_doc - Otherwise fetch
https://mantine.dev/llms.txtand open the Combobox page. More than 50 complete examples are athttps://mantine.dev/combobox/
FAQ
What does the mantine-combobox skill do?
Build custom dropdown/select/autocomplete/multiselect components using Mantine's Combobox primitives. Use this skill when: (1) creating a new custom select-like component with Combobox primitives, (2) building a searchable dropdown, (3) implementing a multi-select or tags input variant, (4) customizing option rendering, (5) adding custom filtering logic, or (6) any task involving useCombobox, Combobox.Target, Combobox.Option, or Combobox.Dropdown.
How do I install mantine-combobox?
Run npx skills add https://github.com/mantinedev/skills --skill mantine-combobox in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/mantine-combobox/ (personal) or .claude/skills/mantine-combobox/ (project).
Which AI agents can use mantine-combobox?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is mantine-combobox safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains mantine-combobox?
It is published by mantinedev in mantinedev/skills. It has 3,537 recorded installs.
More from mantinedev/skills
mantine-custom-components
mantinedev/skills
Build custom components that integrate with Mantine's theming, Styles API, and core features. Use this skill when: (1) creating a new component using factory(), polymorphicFactory(), or genericFactory(), (2) adding Styles API support (classNames, styles, vars, unstyled), (3) implementing CSS variables via createVarsResolver, (4) building compound components with sub-components and shared context, (5) registering a component with MantineProvider via Component.extend(), or (6) any task involving Factory, useProps, useStyles, BoxProps, StylesApiProps, or ElementProps in @mantine/core.
mantine-form
mantinedev/skills
Build forms using @mantine/form. Use this skill when: (1) setting up a form with useForm, (2) adding validation rules, schema validation (zod, valibot, arktype) or async validation, (3) working with nested object or array fields, (4) sharing form state across components with createFormContext, (5) choosing between controlled and uncontrolled mode, (6) reading form values during render with form.useWatchValue, (7) using the standalone useField hook, or (8) any task involving useForm, getInputProps, onSubmit, insertListItem, or form validation.
Popular frontend & design skills
setup-matt-pocock-skills
mattpocock/skills
Configure this repo for the engineering skills: set up its issue tracker, triage label vocabulary, and domain doc layout. Run once before first use of the other engineering skills.
frontend-design
anthropics/skills
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.
hyperframes-animation
heygen-com/hyperframes
All animation knowledge for HyperFrames — atomic motion rules, multi-phase scene blueprints, scene transitions, broader motion-design techniques, AND the seven runtime adapters (GSAP default, plus Lottie, Three.js, Anime.js, CSS keyframes, Web Animations API, TypeGPU). Use for any motion or animation task: pick 2-4 rules and compose, or load a blueprint, or look up runtime-specific API (e.g. GSAP eases / Lottie player / Three.js mixer). Also covers auditing an existing composition's choreography (animation map) and 24 named text-animation effects. HyperFrames-native: single paused timeline, seek-safe, deterministic.
prototype
mattpocock/skills
Build a throwaway prototype to answer a design question. Use when the user wants to sanity-check whether a state model or logic feels right, or explore what a UI should look like.
hyperframes-core
heygen-com/hyperframes
The HyperFrames composition contract — build one renderable project. Use for composition structure, the data- timing attributes, class="clip", tracks, sub-compositions, variables, framework-owned media playback, deterministic-render rules, and validation. Read before writing composition HTML.
vercel-react-best-practices
vercel-labs/agent-skills
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.