render_variants
Render multiple UI component variants with different props or states in a single call, returning a screenshot for each to verify all states and theme variations.
Instructions
Render multiple variants of a component (different props/states) in one call. Returns a screenshot for each variant. Use this to verify buttons in all states, theme variations, etc.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Component code (must export a function that accepts props) | |
| variants | Yes | Array of variants to render | |
| framework | No | Framework: html, react, vue, or svelte | react |
| width | No | Viewport width (px) | |
| height | No | Viewport height (px) |