Building Action Components
摘要
We will base any component we add to our library on our needs or desires – it all depends on whether we’re catering to a larger team or building a personal project. In this chapter, we continue with the theme of building components, but this time they are all based around Actions; welcome to Spinner, SelectBox, and Accordion. The common theme here is performing some action or movement – elements have to move in some way as part of using them. We’ll work through the basic setup of each before adding them to Storybook and creating different variants we can use in our projects.