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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| component | Yes | Component slug as returned by list_components, e.g. "button". |