Integrate with Storybook

UI Components for React
Post Reply
danyyacoub
Posts: 7
Joined: 12 Jan 2017, 13:53

03 Dec 2021, 18:35

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 ?

Melloware
Posts: 2978
Joined: 22 Apr 2013, 15:48

04 Dec 2021, 17:09

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/
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 11.0.0 / PF Extensions 11.0.0
PrimeReact 7.1.0

danyyacoub
Posts: 7
Joined: 12 Jan 2017, 13:53

05 Dec 2021, 16:47

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

Melloware
Posts: 2978
Joined: 22 Apr 2013, 15:48

05 Dec 2021, 20:05

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!
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 11.0.0 / PF Extensions 11.0.0
PrimeReact 7.1.0

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 7 guests