Understand @react-grab/openstory story types
mainThe playground uses two distinct types of stories to inspect the ReactGrabRenderer overlay UI:
- Component stories: These render UI elements (toolbar, selection label, context menu, comments dropdown, etc.) using mocked props. They are used to inspect specific UI states like
idle,context menu,comment input, andpending dismisswithout side effects. - Playground stories: These import
react-grabfor its side effects, causinginit()to run against the story DOM. These are used for testing hover and grab interactions against realistic scenarios such as:- Composite Dashboard: Dense-DOM selection testing (sidebar, metric cards, charts, data tables).
- Freeze Demo: Verifying freeze-animations and freeze-updates using a bouncing animated timer.
- Live Updates: Verifying freeze-updates against continuously re-rendering components.