get_component_html
Extract HTML and optional CSS styles for a specific component story from Storybook using a valid story ID. Obtain story IDs via list_components or get_component_variants for accurate extraction.
Instructions
Extract HTML from a specific component story in Storybook. Requires a story ID (format: "component-name--story-name", e.g., "button--primary", "forms-input--default"). Use list_components or get_component_variants first to find valid story IDs.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
componentId | Yes | The story ID in format "component-name--story-name" (e.g., "button--primary", "forms-input--default"). Get this from list_components or get_component_variants. | |
includeStyles | No | Whether to include extracted CSS styles in the response (useful for understanding component styling) |