/
2022-02-21 - Component library approach discussion
2022-02-21 - Component library approach discussion
Date
Feb 21, 2022
Meeting recording
Participants
Reckitt (RB):
Radosław Kowalewski
Bartłomiej Kuśmierczuk
Janusz Paprzycki
Pawel Ploneczka
Robert RuszczykDataArt (DA):
Julia Boyarshchikova
Sergey Gromskiy
Sergey Kiselyov
Anton Merkulov
Nikita Puzyrenko
Goals
Discuss the approach to component library
Action items
RB & DA to confirm hero banner as the POC component instead of a button
RB to share an example code
Key takeaways
- Button component won’t make a good POC, it’s better to use more complex component consisting of more atoms
- let's discuss components case by case - we might not be able to decide on the approach beforehand
- it will be easier to discuss the code when compared to discussing just the design
- let's start with the interfaces, it will show how components are meant to be used/extended/customized
- when possible use CSS instead of JS logic (for example layout direction)
- CSS in JS vs SCSS - requires POC (HeroBanner was proposed as a component that should be implemented in both approaches) - the main idea is to provide an easy approach for theming and keeping the great performance
- there might be some components that will require injecting the logic in order to avoid linking the Design System to the particular framework (for example we can't use Link coming from gatsby, however, the implementation of Link or logic behind could be injected into the component in the runtime)
- we might consider components connected to frameworks: Image vs GatsbyImage. Of course, it will imply organisms since the organism will have to know which version of the Image component should be rendered.
.