Atomic Design: TEMPLATE (React Functional Components)
You are creating a TEMPLATE: page-level layout composition without real data binding.
Hard rules
- Functional components only.
- No real data fetching in templates. Templates define structure, regions, and composition.
- Slot-based design:
- Prefer
header,sidebar,content,footerregions via props/children. - Avoid hard-coding copy and domain-specific assumptions.
- Prefer
- Responsiveness & semantics:
- Use proper landmarks and heading structure.
- Ensure layout works across breakpoints (as dictated by project conventions).
Output expectations
- Provide:
Template.tsxTemplate.stories.tsxshowing multiple compositions- Optional
Template.test.tsx(layout presence + landmark roles)
Recommended folder conventions
src/templates/<TemplateName>/...
Template checklist
- Defines regions clearly
- Minimal styling assumptions; flexible composition
- No domain logic or data acquisition