snapshot_check
Render a component and compare it against a saved snapshot to detect visual regressions. Returns pixel diff and pass/fail result.
Instructions
Render a component and compare against a previously saved snapshot. Returns pixel diff and pass/fail. Use this after making changes to verify no visual regression.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the snapshot to compare against | |
| code | Yes | Current component code to render and compare | |
| framework | No | Framework | react |
| width | No | Viewport width (px) | |
| height | No | Viewport height (px) | |
| darkMode | No | Render with dark mode | |
| tailwindVersion | No | Tailwind CSS version (3 or 4) | 3 |