Thank you for your time in contributing to MUI Treasury! Let's build a block ✨.
To request a block, open a new issue with the title Request: [block name]
and describe the block you want. If you have a design inspiration, please attach it to the issue.
- Pick a block you want to work on and comment on the issue that you are working on it.
Note: if there is no block that you want to work on, you can create a new issue to request a block and start working on it.
-
Fork the mui-treasury and clone it to your local machine.
-
Create a new branch from
main
branch with the nameblock/[block-name]
(e.g.block/card-news-maldives
). -
Run a script to create a new block, the block name should follow the format of
{component}-{style}-{name}
(e.g.card-news-maldives
).yarn new-block [block-name]
-
run
yarn storybook
to see the block and start working on it. -
create a PR.
- Run
yarn dev
to start watching the changed files. - Make changes to the src folder.
- Run
yarn link
- Run
mui-tresury ...
to test the CLI.