Get a Layro component's code
get_component_codeThe complete source for one component and every file it imports, ready to save at the paths given. Free components need a free Layro account's token; Pro components need the caller's Layro lifetime access. Install with the shadcn CLI instead when you can run commands (see get_installation).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | A component slug, like "data-table". | |
| include_dependencies | No | Also return every file it imports (the theme, foundations, sibling components). Default true. Set false only if those are already in the project. |