Component
A reusable building block of a website. Like LEGO pieces, you snap them together to build pages.
A component is a self-contained, reusable piece of a website’s interface: its structure, styling, and behavior bundled together as one unit. Instead of building each page from scratch, modern web development assembles pages from components (a navigation bar, a card, a footer) that can be dropped in wherever they’re needed. Different frameworks like React, Astro, and Vue each have their own component format, but the core idea is the same: build it once, use it everywhere, update it in one place.
The Simple Version
Think of a website like a page in a magazine. You’ve got the header at the top, a navigation menu, some cards showing articles, a footer at the bottom. Each of those pieces is a component: a self-contained chunk that you can build once and reuse everywhere.
It’s the LEGO approach to building websites. Instead of crafting each page as one giant thing, you build small pieces and snap them together.
Why It Matters
Components keep things organized and consistent. If your navigation menu is a component, you build it once and drop it into every page. Need to change a link? Update the component, and it changes everywhere. No hunting through dozens of pages to fix the same thing in 20 places.
How It’s Used on This Site
This site has components for everything. Some examples you can see right now:
- Header: the navigation bar at the top of every page (one component, used everywhere)
- DictionaryTeaser: the section on the homepage that previews glossary terms, pulling live data from the content collection
- Projects cards: the two project cards on the homepage, each linking to a dedicated project page
- GlossarySearch: the search bar on the Dictionary index page, a React component that filters terms instantly
- FileClarityDemo: the interactive before-and-after explorer at /projects/file-clarity
When a new page is added, it’s assembled from existing components like building blocks, plus any new ones the page needs.
Related Articles
OpenAI shut down Sora and walked away from a $1B Disney deal in the same week. What the pruning actually signals, plus a practical look at Claude Code for non-technical builders.
What actually happened when I replaced a generic light theme with a full dark design system — the decisions, the CSS, and why the difference matters beyond just aesthetics.
How I fixed a broken visual identity using ChatGPT for logo design and brand tokens, then handed a structured markdown file to Claude Code to execute the CSS migration and replace a static hero with an AI-generated animation.
How a glossary of technical terms for non-technical readers grew out of the same AI workflow that builds the site itself. Content collections, structured data, and Claude Code doing the heavy lifting.
A non-developer's walkthrough of building a professional website using Claude Code, Astro, and AI-assisted development. From rapid scaffold to production deployment.
Browse the Full Dictionary