Component Patterns & Anatomy Gallery
Overview
When you build a UI component you face two recurring questions: what is this thing actually called, and what parts does it have. The Component Gallery (component.gallery) answers the first by cataloging interface components from real-world design systems — each entry lists the component, its alternate names, a description, and links to how many systems implement it. AlignUI (alignui.com) answers the second as a production design system with React + Tailwind components and a synced Figma kit. Consult this skill before naming or structuring a component so your vocabulary and anatomy match established conventions instead of ad-hoc invention.
Official sources
Core concepts
- Component anatomy. Most components decompose into named parts (e.g. a card has container, media, header, body, actions; a dialog has overlay, container, title, description, close, footer). Naming the parts is the foundation of an API and of accessible markup.
- Canonical naming and aliases. The same pattern goes by different names across systems (Accordion vs. Disclosure vs. Expander; Snackbar vs. Toast; Combobox vs. Autocomplete). The Component Gallery surfaces these aliases so you pick a recognizable name.
- Compare-across-systems. For any component you can see how multiple mature design systems solved the same interaction/layout problem, which exposes the variants, props, and states worth supporting.
- States and variants. Components are defined as much by their states (default, hover, focus, active, disabled, loading, error, selected) and variants (size, emphasis, intent) as by their static look.
- Design-to-code parity. Systems like AlignUI keep a Figma kit and a coded library in sync; treat the design tokens and component contracts as a single source of truth across both.
Best practices
- Use the canonical component name (and document its aliases) so designers, engineers, and future agents share one vocabulary — look it up in The Component Gallery rather than coining a new term.
- Model the component's full state matrix (hover/focus/active/disabled/loading/error) up front; missing states are where UIs feel unfinished.
- Build interactive components on accessible primitives (correct roles, keyboard support, focus management) — study how reference systems handle ARIA for the pattern before rolling your own.
- Expose variation through a small, named prop API (size, variant/intent, emphasis) rather than many one-off boolean flags.
- Keep design tokens (color, spacing, radius, typography) as the shared layer so Figma and code stay in parity.
Common pitfalls
- Inventing a bespoke name for a well-known pattern → confuses collaborators and search; reuse the established name and list aliases.
- Shipping only the happy-path visual and forgetting focus/disabled/loading/error states → incomplete, inaccessible component.
- Cloning a screenshot's pixels but skipping keyboard and ARIA semantics → looks right, fails real use; reference how design systems implement the role and interactions.
Examples
Dialog (aliases: Modal)
- Overlay (scrim, click-to-dismiss optional)
- Container (focus-trapped, role="dialog", aria-modal="true")
- Title (aria-labelledby target)
- Description (aria-describedby target)
- Content
- Footer (primary + secondary actions)
- Close button (aria-label)
States: open / closed; initial focus + focus return on close
Further reading
- component.gallery component pages for per-pattern anatomy, aliases, and cross-system examples.
- AlignUI docs for a concrete React + Tailwind implementation of these patterns.
Related skills
- ../shadcn-tailwind-theming — implement these patterns as themeable shadcn/Tailwind components.
- ../react-component-libraries — prebuilt implementations of common components.
1---2name: component-patterns-gallery3description: Canonical UI component anatomy, naming, and patterns; consult to name, structure, and document components consistently with real design systems.4domain: reference5category: reference6tags: [components, design-system, ui-patterns, anatomy, accessibility]7official_sources:8 - https://component.gallery/9 - https://alignui.com/10verified: 2026-06-1611metadata:12 source: https://skillmd.com/skills/gabriel7silva/component-patterns-gallery13---1415# Component Patterns & Anatomy Gallery1617## Overview18When you build a UI component you face two recurring questions: what is this thing actually called, and what parts does it have. The Component Gallery (component.gallery) answers the first by cataloging interface components from real-world design systems — each entry lists the component, its alternate names, a description, and links to how many systems implement it. AlignUI (alignui.com) answers the second as a production design system with React + Tailwind components and a synced Figma kit. Consult this skill before naming or structuring a component so your vocabulary and anatomy match established conventions instead of ad-hoc invention.1920## Official sources21- The Component Gallery: https://component.gallery/22- Components index: https://component.gallery/components/23- Design systems index: https://component.gallery/design-systems/24- AlignUI: https://alignui.com/2526## Core concepts27- **Component anatomy.** Most components decompose into named parts (e.g. a card has container, media, header, body, actions; a dialog has overlay, container, title, description, close, footer). Naming the parts is the foundation of an API and of accessible markup.28- **Canonical naming and aliases.** The same pattern goes by different names across systems (Accordion vs. Disclosure vs. Expander; Snackbar vs. Toast; Combobox vs. Autocomplete). The Component Gallery surfaces these aliases so you pick a recognizable name.29- **Compare-across-systems.** For any component you can see how multiple mature design systems solved the same interaction/layout problem, which exposes the variants, props, and states worth supporting.30- **States and variants.** Components are defined as much by their states (default, hover, focus, active, disabled, loading, error, selected) and variants (size, emphasis, intent) as by their static look.31- **Design-to-code parity.** Systems like AlignUI keep a Figma kit and a coded library in sync; treat the design tokens and component contracts as a single source of truth across both.3233## Best practices34- Use the canonical component name (and document its aliases) so designers, engineers, and future agents share one vocabulary — look it up in The Component Gallery rather than coining a new term.35- Model the component's full state matrix (hover/focus/active/disabled/loading/error) up front; missing states are where UIs feel unfinished.36- Build interactive components on accessible primitives (correct roles, keyboard support, focus management) — study how reference systems handle ARIA for the pattern before rolling your own.37- Expose variation through a small, named prop API (size, variant/intent, emphasis) rather than many one-off boolean flags.38- Keep design tokens (color, spacing, radius, typography) as the shared layer so Figma and code stay in parity.3940## Common pitfalls41- Inventing a bespoke name for a well-known pattern → confuses collaborators and search; reuse the established name and list aliases.42- Shipping only the happy-path visual and forgetting focus/disabled/loading/error states → incomplete, inaccessible component.43- Cloning a screenshot's pixels but skipping keyboard and ARIA semantics → looks right, fails real use; reference how design systems implement the role and interactions.4445## Examples46```text47Dialog (aliases: Modal)48 - Overlay (scrim, click-to-dismiss optional)49 - Container (focus-trapped, role="dialog", aria-modal="true")50 - Title (aria-labelledby target)51 - Description (aria-describedby target)52 - Content53 - Footer (primary + secondary actions)54 - Close button (aria-label)55 States: open / closed; initial focus + focus return on close56```5758## Further reading59- component.gallery component pages for per-pattern anatomy, aliases, and cross-system examples.60- AlignUI docs for a concrete React + Tailwind implementation of these patterns.6162## Related skills63- ../shadcn-tailwind-theming — implement these patterns as themeable shadcn/Tailwind components.64- ../react-component-libraries — prebuilt implementations of common components.