get_component_source_code
Inspect the React/TypeScript source code of a HeroUI v2 component to understand its hooks and ARIA wiring. Get a valid slug from list_components first.
Instructions
Get the React/TypeScript source implementation of a HeroUI v2 component from packages/components//src on GitHub. Useful for understanding internals, hooks and ARIA wiring. Do NOT copy this directly — import the component from @heroui/react or its individual package instead. Use list_components first to get a valid slug.
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": {
"component": "<component>"
},
"name": "get_component_source_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| component | Yes | Component slug as returned by list_components, e.g. "button". |