Playroom is a zero-install design environment that renders JSX against your own React components. Teams preview layouts across themes and viewport widths and ship it as a static bundle beside design docs.
Overview
Playroom lets you design in JSX using the same components production apps use, instead of a separate mock-up tool. You configure a playroom.config.js file, export your components, and run a local dev server or build a production bundle to host alongside design system documentation.
The UI shows multiple frames so you can compare themes and screen sizes at once. Predefined snippets speed inserting common layouts, with optional grouping and descriptions. A custom frame component can wrap children with providers such as theme context.
Optional scope hooks expose extra variables to user-authored JSX. Theme configuration can render every theme simultaneously when your library defines multiple themes. Frame settings add per-frame boolean toggles passed into the frame component for cases like RTL or debug modes.
TypeScript projects gain editor autocompletion from react-docgen-typescript when a tsconfig is present. Playroom integrates with Storybook through a separate addon, and supports ESM configuration file extensions.
Key features
- JSX editing with live component preview
- Multi-theme and multi-viewport frames
- Configurable code snippets
- Custom frame and provider wrapping
- Shareable URL state for layouts
- TypeScript prop autocomplete
- Frame-level boolean toggles
- Production static bundle output
Use cases
- Prototype UI with real design tokens
- Stress-test component flexibility
- Share design explorations via URL
- Document components beside live JSX
- Compare themes and breakpoints quickly