Designer News is where the design community meets.
over 2 years ago from Mo Baghdadi, I design stuff
Instead of thinking as every instance of a modal as a separate component, think about a single modal component with attributes that you can modify.
A list of attributes a modal can have: - Header - Body - Footer
I'd consider the header and footer to be mostly defined where the body gives the flexibility to add whatever content necessary.
Where the design community meets.
Designer News is a large, global community of people working or interested in design and technology.
© 2021 Designer News Ltd.