Home
Bookmarks
Leagues
LEARN
Courses
Career Paths
Assessments
Tutorials
Arcade
Glossary
GROW
Certifications
Log in
Glossary
Log inSign up
Courses/Introduction to Design Systems/Atomic Design & Modular Component Architecture/
Exercise #3

Molecules: Composition & Single Responsibility

Molecules are formed by composing atoms. They adhere to the Single Responsibility Principle: doing one tangible job exceptionally well.

Examples of standard UI Molecules:

  • <FormField>: Combines <Label>, <Input>, and optional <ErrorMessage> or <HelperText>. It handles the accessibility link (aria-describedby) connecting error text to the input.
  • <SearchBar>: Combines <SearchIcon>, <TextInput>, and <ClearButton>.
  • <PaginationControl>: Combines <PrevButton>, page number pills, and <NextButton>.

Molecules encourage reuse: instead of every developer re-inventing how an error label connects to an input, the <FormField> molecule guarantees accessibility out of the box.

Topics

Brad Frost's Atomic Design Methodology
Atoms: The Indivisible Building Blocks
Molecules: Composition & Single Responsibility
Organisms: Distinct Functional Sections
Component Composition vs 'Prop Explosion'
Principles of Clean Component API Design
Handling the 4 Essential Component States
Templates & Pages: Testing Stress & Edge Cases
Headless UI Primitives & Unstyled Foundations
Challenge: Deconstructing a Flight Booking Card

From lesson

1

Atomic Design & Modular Component Architecture

Level 4 · Component Architecture & Visual Language

Top contributors

Community contribution details will appear here once real learner activity is available.

Share