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.

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Building Action Components

  • Alex Libby

摘要

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.