Get Component Variant
get_component_variantRetrieves the complete HTML markup for a named variant of a design component, using variant names obtained from get_component to access both BSI and Dev Kit story variants.
Instructions
Returns the full HTML markup of a specific variant by name. Use variantsAvailable from get_component to find variant names. Searches BSI markup variants and Dev Kit story variants transparently. Dev Kit variant names with numeric suffixes (-2, -3) are multiple examples of the same variant.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Component name or slug (e.g. "accordion", "card") | |
| variantName | Yes | Variant name (e.g. "Base", "Tabella base") |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| meta | Yes | ||
| results | Yes | ||
| component | Yes | ||
| variantName | Yes |