shadcn.io is not affiliated with official shadcn/ui
- Group
- Inspect
- Inputs
namebase?detail?framework?part?prop?- Access
- Read-only
When to use it
- Before using a part: its props, their types and defaults.
- To style or test a part: its data attributes and CSS variables.
Inputs
namestring
As in its URL: date-picker.
base?"base" | "aria" | "ark" | "radix"
React only. Default base (Base UI).
- Type
"base" | "aria" | "ark" | "radix"
detail?boolean
Every part in full (long).
framework?"react" | "vue" | "svelte" | "solid"
Default react.
- Type
"react" | "vue" | "svelte" | "solid"
part?string
One part, in full: Content, Root.
prop?string
One prop, data attribute or CSS variable: open.
Example prompts
Name the server, so the agent doesn't answer from memory:
Call and response
Asked “What props does the Dialog's content take?”, the agent sends this call. The response is real, trimmed: long lists show their first items and long strings are cut.
get_component_api({ name: "dialog", part: "Content" }){
"parts": [
{
"part": "DialogContent",
"dataSlot": "dialog-content",
"props": [
{
"name": "bottomStickOnMobile",
"type": "boolean",
"default": "true",
"description": "Stick the dialog to the bottom of the screen on mobile."
},
{
"name": "positionerClassName",
"type": "string",
"description": "Class names on the positioner (the viewport-fixed wrapper)."
},
"… 4 more"
]
}
],
"name": "dialog",
"target": "React · Base UI"
}Call it by hand
Your MCP client sends this for you. To try the tool without one, post the call yourself; the server answers in server-sent events, the result on the data: line.
What your agent reads
The server's description of get_component_api, one of the Inspect tools. Your agent reads it to decide when to call the tool:
A component's API: an outline by default (each part's prop names,*required, and the keys).partorpropfor types, defaults and descriptions;detailfor all of it.
Next
FAQ
Why is the API an outline unless I ask for a part?
A component's whole reference can be thousands of tokens (Vue's Select is about 7,000). The outline is a few hundred: every part and the names it takes. Then part reads one part in full.
When should I use this instead of the docs page?
The same reference, as data: no Markdown to parse, and part or prop narrow it to what you need. A part's props are a few hundred tokens; the docs' whole API section can be a few thousand.