Description
React View is a library for building interactive playgrounds for React components, combining live editing, documentation and code generation. Each component prop gets an editing control, called a knob: booleans become checkboxes, enums become radio buttons or a select, and any value can also be edited as code in a small editor. When the built-in prop types are not enough, a customProp API lets you define your own knob and control how the value is represented internally, such as a slider for a rating component. The playground shows the resulting component code, which you can format, copy or share via URL, and it can handle complex props such as the overrides pattern used in the Base Web component library. It is aimed at teams documenting component libraries.…
Highlights
- Live playground for React component props
- Automatic knobs for booleans and enums
- Inline code editor for any prop value
- customProp API for custom knobs
- Generated code with format, copy and share-by-URL
Ratings & Reviews
No ratings yet
Be the first to rate React View.
People also visit
React Styleguidist
Isolated React component development environment with a living style guide
React View FAQ
What is React View for?
Creating interactive playgrounds where people can tweak a React component's props, see the result and copy the generated code, which doubles as documentation.
How are props edited?
Basic types get specialized controls, for example a checkbox for booleans and a radio group or select for enums, and any prop can also be edited as code.
Can I add my own controls?
Yes. The customProp API lets you supply a custom knob and decide how the value is stored and turned into code.
Can I share a playground state?
The playground includes buttons to format the code, copy it, copy a URL and reset.
What are the best React View alternatives?
Popular alternatives to React View include DialKit and React PDF. See all React View alternatives
















