Page 1 of 1

Integrate with Storybook

Posted: 03 Dec 2021, 18:35
by danyyacoub
I'm trying to start a project with PrimeReact, but I really liked the concept of Storybook where i can customize each component and test it separately.

Is there a way to integrate Primereact with storybook ? as in have by default the components as is in the storybook and then make changes as needed ?

Re: Integrate with Storybook

Posted: 04 Dec 2021, 17:09
by Melloware
What have you tried? there is nothing stopping you from adding StoryBook to your app and adding PrimeReact compoennts to it.

For a good example see this: https://prateeksurana.me/blog/react-com ... orybook-6/

Re: Integrate with Storybook

Posted: 05 Dec 2021, 16:47
by danyyacoub
Yepp,

This is what I'm actually doing.

I was checking if there's something similar to material ui plugin for storybook
https://storybook.js.org/addons/storybo ... aterial-ui

Before I go full on putting every PrimeReact component.

Thanks

Re: Integrate with Storybook

Posted: 05 Dec 2021, 20:05
by Melloware
Not that I am aware of but I wonder if you can just look at what Material is doing there and create a PrimeReact to do the same. Might be a good GitHub project!