Comments (3)
This would be nice to have, indeed. This is something we've considered since as long as 2016 I believe. I think in time people migrated to using TypeScript or Flow for static typing instead of PropTypes (runtime validation) so interest slowly declined.
from rfcs.
Got it. Where would I look in the code base to assess feasibility? Low priority but if low hanging fruit Iād be happy to contribute.
from rfcs.
Got it. Where would I look in the code base to assess feasibility? Low priority but if low hanging fruit Iād be happy to contribute.
I think the main part is figuring out how to extract the prop types from your component, which is decoupled from Cosmos. I think there are some existing projects for this but I can't recall what they are. I'd say find a solution that you're happy with for extracting the prop types into a simple data format first (like a JSON description that can be turned into a table view).
On the Cosmos side, the Playground UI is composed of many plugins. One example is the Props panel. The way plugin slots are composed is not documented, but I think that can be overlooked for now as 99% of the code is just React components composing each other.
If you're interested I would be up for a brief live conversation to hash out a potential plan and share more info about 1) what you're envision and 2) how to approach it. You can find me on Slack.
from rfcs.
Related Issues (20)
- Add "template" argument permitting modifications to the page wrapper component
- Ability to disable react-error-overlay HOT 4
- Remove redundant folders in the sidebar HOT 14
- Synchronous dev utilities HOT 3
- Better API for getting fixture meta data
- Enabling scripted config files HOT 6
- Fixture options HOT 1
- Documentation for using react-cosmos with gatsby HOT 3
- Unbundled development HOT 4
- Link command for Cosmos contributors
- Is there a way to use react-cosmos with styled-components ? HOT 1
- Documentation for React Cosmos for Vite HOT 1
- Allow fixture files and directories with the same name HOT 1
- Toggle dark mode HOT 2
- Bun.sh support HOT 2
- Edit in CodeSandbox button HOT 2
- View Source
- Snapshots for manual/automated visual regression testing
- Cosmos Export Separate Documents HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ššš
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rfcs.