get_component_code
Retrieve complete React, Tailwind, and Framer Motion source code, demo, and dependencies for any component using its unique slug, with fallback live fetching from registry URL.
Instructions
Retrieves complete React, Tailwind, Framer Motion source code, demo, and dependencies for a component. Supports fallback live fetching.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | Unique component slug e.g. 'glowing-card', 'floating-dock', 'bento-grid-3x3' | |
| registryUrl | No | Optional 21st.dev registry URL to fetch live if not found offline |