chromaui / addon-visual-tests

Visual Tests addon for Storybook
MIT License
28 stars 1 forks source link

Add sliding diff viewer #328

Open ghengeveld opened 3 days ago

ghengeveld commented 3 days ago

Built on top of https://github.com/chromaui/addon-visual-tests/pull/206 and based on https://github.com/chromaui/addon-visual-tests/pull/151.

State is hoisted up to a context provider in order to allow synchronizing state between two instances:

https://github.com/chromaui/addon-visual-tests/assets/321738/7121158a-5c61-4698-b400-f9b2bfadabdd

📦 Published PR as canary version: 1.6.1--canary.328.1cfab32.0
:sparkles: Test out this PR locally via: ```bash npm install @chromatic-com/storybook@1.6.1--canary.328.1cfab32.0 # or yarn add @chromatic-com/storybook@1.6.1--canary.328.1cfab32.0 ```