Giter Club home page Giter Club logo

mui-storybook's Introduction

storybook gif

MUI Storybook


Storybook chromatic

This project is Storybook for MUI v5 default components.

At the time this project progress is not completed.
There are many Components that have not yet been added to the Storybook, and the feature of switch between the default Light Theme and Dark Theme has not yet been implemented.

Please take a look Progress page to track current status, and contribution is really helpful. ๐Ÿ˜„

Why

This project is being developed to support front-end teams that are MUI users and use Storybook in their workflow.

Although the official MUI documentation is far more useful as a reference, I started this project because I realized that some teams that using Storybook or Chromatic as part of their development process have a need to make the external UI libraries available to everyone in Storybook.

Installation

Copy and paste following refs field into the your .storybook/main.js file.

// .storybook/main.js

module.exports = {
  refs: {
    'mui-storybook': {
      title: 'MUI Storybook',
      url: 'https://61c23f8c33dad8003adc12f6-cwovkuxnql.chromatic.com/',
    },
  },
}

And then start storybook like yarn storybook npm run storybook, you'll see the mui-storybook in the your storybook.

installation

Local Development

git clone https://github.com/saitharunsai/mui-storybook.git
cd mui-storybook
yarn
yarn storybook # launch Storybook dev mode

Contribute Guide

  1. Fork the repository and create your branch from main.
  2. Run yarn in the repository root.
  3. Run yarn storybook.
  4. Run yarn gen <ComponentName>
  5. Then you got scaffold like this
yarn gen Paper
yarn run v1.22.18
$ plop Paper
โœ”  ++ /src/components/Paper/Paper.tsx
โœ”  ++ /src/components/Paper/Paper.stories.tsx
โœจ  Done in 0.81s.

License

MIT

Contributors โœจ

Thanks goes to these wonderful people (emoji key):


ryota-murakami

๐Ÿ’ป ๐Ÿ“– โš ๏ธ

Sai Tharun

This project follows the all-contributors specification. Contributions of any kind welcome!

mui-storybook's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

mui-storybook's Issues

Design token

Design Token Setup
I'm having Issues connection design token folder. I imported the folder into an existing startup project, but the style updates are not translating to storybook, it still reflects default MUI styles. Is there a step that needs to be taken to include that folder in to the project? And sorry I'm not well versed in material.

Progress

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.