How to document reusable components?

Still have a question, spotted an error, or have a better explanation or a source we should cite?

You've probably built a great CTA button or a nice section divider. Then someone else on your team rebuilds the same thing differently. Then someone rebuilds it again. That's the moment you need component documentation.

Document each component by answering the questions your team actually asks. What is it? Show a screenshot. When do we use it? List the situations. How do we build it? Give the code or template name. What can we change? Show what's locked versus editable (colors, text, images). How does it look on mobile? Include screenshots from desktop and mobile, light mode and dark mode if you support both.

Choose a place your team will actually find it. Notion, Confluence, Storybook, or a dedicated tool. Make it searchable so people don't have to flip through a PDF. Use visual examples heavily. Screenshots win over descriptions. One screenshot showing the component in context beats paragraphs of explanation.

But Here's what kills component docs: letting them get outdated. Old docs are worse than no docs because they give your team false confidence in wrong information. Assign one person to own the docs. When a component changes, documentation updates happen at the same time. Version your docs alongside your components. If component v2 launches, docs should reflect v2.

Start small. Pick your three most-used components. Document them. Get your team using those docs. Then add more. A living, incomplete docs system beats a dead, complete one. Your first action: list your components. Which three appear in almost every email? Start there. Then pick your tool and create a simple template for each component entry (what is it, when to use, how to build, what's customizable).

Related: brand consistency, email design best practices, pre-send testing.

Contributors

Who worked on this answer

Every name links to their profile. Every company links to their site. Real people, real accountability.

Ask an AI · tailored to your setup

Get a component documentation template.

I need to document our email components but I'm not sure how to start: 1. What should I include for each component 2. Where should I store the documentation 3. How to get my team to actually use it 4. How to keep it from getting outdated --- My situation: - Team size: solo / small (2-5) / medium (6-15) / large - Current components: rough list of components we use - Tool preference: Notion, Confluence, Storybook, custom wiki, not sure - Design tool: Figma, Sketch, Adobe, code-based - Code base: HTML/CSS, MJML, drag-and-drop builder, mixed - Current documentation: nothing / scattered / partial

Edit the yellow boxes, then send to the AI of your choice.