Description
React Cosmos is a sandbox for developing and testing React UI components in isolation. You describe each component's states as fixtures, using a file-system based module convention, and then browse and change those states in a user interface playground without running the whole application. The project focuses on isolated component development and developer experience. Interactive style guides are possible with plugins, but that is not its main purpose. Its main pieces are a static export that produces an interactive component library you can deploy to any static hosting service, integrations with Vite, Webpack, React Native, Next.js and custom setups, and a full-stack plugin system that can extend every part of the tool. The site says it supports React 19 and Next 15. The codebase is 100 percent TypeScript with minimal dependencies, and the documentation includes guides, usage notes and an ecosystem section. The project began inside an analytics team at Hootsuite, was first shown at ReactEurope 2015 in Paris, and its code is on GitHub.…
Highlights
- Fixtures defined with a file-system module convention
- Playground for browsing and changing component states
- Static export for any static host
- Integrations with Vite, Webpack, React Native and Next.js
- Full-stack plugin system and 100 percent TypeScript
Ratings & Reviews
No ratings yet
Be the first to rate React Cosmos.
People also visit
React Styleguidist
Isolated React component development environment with a living style guide
React Cosmos FAQ
What is React Cosmos?
A sandbox for building and testing React UI components in isolation.
How are component states defined?
As fixtures, using a file-system based module convention.
What is the UI playground?
A view for browsing a component's fixtures and manipulating the component while you develop.
Can I publish the component library?
Yes. The static export builds an interactive component library that you can deploy to any static hosting service.
Which build tools does it work with?
Vite, Webpack, React Native and Next.js, plus custom setups.
Does it support the latest React?
The site says it supports React 19 and Next 15.
Where is the source?
On GitHub at react-cosmos/react-cosmos, with a Discord server for questions.
What are the best React Cosmos alternatives?
Popular alternatives to React Cosmos include React View, Ladle and Motoko UI. See all React Cosmos alternatives












