Giter VIP home page Giter VIP logo

Comments (3)

ovidiuch avatar ovidiuch commented on July 20, 2024

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.

EdmundsEcho avatar EdmundsEcho commented on July 20, 2024

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.

ovidiuch avatar ovidiuch commented on July 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.