Skip to content
R

React Cosmos

Sandbox for developing and testing UI components in isolation

#5364in Developer Tools
0In stores

Description

React Cosmos is a sandbox for developing and testing React UI components in isolation. You describe each component's states as fixtures, usi…

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

R

React Styleguidist

Isolated React component development environment with a living style guide

Utilities
Launch
S

Storybook

An open-source tool for developing UI components in isolation for React, Vue

Design
Launch
M

@marvelapp/react-ab-test

A/B testing React components and debug tools

UI Libraries
Launch
R

react

TSX components, UI libraries, styling, state locality, layout

AI Skills
Get
R

react-testing-library

React Testing Library: user-centric component testing

AI Skills
Get
R

ReacType

Prototyping Tool for exporting React/Typescript Applications!

Utilities
Launch

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

Developer Stuff

Badges