There’s no single best approach when it comes to building components. Methods like fast-prototyping will sometimes require interfaces to use components before they become available and documented in the library.
In the book Building Design Systems, two different approaches to creating new components are described. Both methods of construction are outlined here:
Both methods will still require documentation to be created at the end of the process. Still, the former method focuses more on anticipating design requirements based on available solutions, and the latter happens as the result of prototyping activities.
Documenting components is a crucial step of the design process. It provides the team with a resource to reuse and integrate components and maintain consistency as the product evolves.
Ideally a component library entry should contain the following:
WIP