uber / react-view

React View is an interactive playground, documentation and code generator for your components.
https://react-view.pages.dev
MIT License
697 stars 41 forks source link

How to change the theme? #59

Closed lengkaixin closed 3 years ago

lengkaixin commented 3 years ago

How to change the theme like baseUI? For example, replace the

tajo commented 3 years ago

You should use useView hook and pass data/props to your own custom components. This library is really just that hook handling the whole state. Default UI components are pretty easily replaceable if you wish.

https://react-view.netlify.app/?path=/story/useview--basic

If you are specifically interested into Base Web's theme, you can check out our implementation: https://github.com/uber/baseweb/tree/master/documentation-site/components/yard

lengkaixin commented 3 years ago

thank you very much!