Search UI components
search_componentsSearch indexed UI components across shadcn, 21st.dev, and UIverse by keyword, then get install or copy instructions instead of building from scratch.
Instructions
Searches the index for components whose row holds every query word, in any case and order. Results come per source: those with more of the words in their name (a UIverse element's type) first, then the most bookmarked (21st.dev) or favorited (UIverse); each says how to install or open it.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "search_components"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Only items whose kind contains this: shadcn's registry:block, registry:ui, registry:component, registry:hook…; 21st.dev's ui, blocks, hooks, icons; UIverse's button, loader, card, switch, checkbox, input, pattern, radio, tooltip | |
| limit | No | Results per source, 10 when unset | |
| query | Yes | What the component is or does, a library or an author, e.g. "date range picker", "file upload", "motion carousel" | |
| source | No | One source only: shadcn (the partner registries), 21st (21st.dev) or uiverse (UIverse.io) |