Get StyleKit component recipe
stylekit_get_component_recipeRender a ready-to-use component for a style: the full Tailwind className and JSX code. Components are usually "button", "card", "input" (check recipeIds via stylekit_get_style). Recipe data is read from the live catalogue with a five-minute cache; a bundled snapshot may be returned during an outage and is marked with origin and fallbackReason.
Args:
slug (string): style identifier.
component (string): recipe id, e.g. "button", "card", "input".
Returns JSON: { slug, component, className, code, origin, fallbackReason? }.
Examples:
"give me a glassmorphism button" -> slug: "glassmorphism", component: "button"
Returns an error listing available recipes if the component isn't found.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | Style slug | |
| component | Yes | Recipe id: button, card, input, ... |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| slug | Yes | ||
| origin | Yes | ||
| className | Yes | ||
| component | Yes | ||
| fallbackReason | No |