Components
Reusable building blocks in software that handle specific functions and can be combined to build complete applications.
What are Components?
Components are self-contained pieces of code that handle a specific part of your application's UI or functionality.
Think of them like LEGO blocks. Each component does one thing well (a button, a form, a navigation bar) and can be reused across your app without rewriting code.
Most modern frameworks like React, Vue, and Svelte are built around components. You write a component once, then drop it anywhere you need it. Change it in one place, and it updates everywhere.
Components can be as simple as a single button or as complex as an entire checkout flow. The key is they're isolated, testable, and composable.
Good to Know
Self-contained pieces of code that handle specific UI or functionality
Reusable across your entire application without duplicating code
Core building blocks in React, Vue, Svelte, and most modern frameworks
Can be nested inside other components to build complex interfaces
Changes to a component automatically update everywhere it's used
How Vibe Coders Use Components
Building a dashboard where the same card layout appears 20 times with different data
Creating a design system so your whole team uses the same buttons and forms
Dropping a pre-built authentication component into your app instead of building from scratch
Breaking down a complex checkout flow into smaller, testable pieces
Frequently Asked Questions
Related Terms
A collection of copy-paste React components built on Radix UI that you own and customize, not a traditional npm package.
Next.js's file-system based routing that uses React Server Components for faster, more flexible page navigation and data fetching.
Vercel's AI tool that generates React and Next.js UI components from text prompts, turning ideas into deployable code in minutes.
A JSON-based animation format that lets you ship lightweight, scalable animations on any platform without pixelation or huge file sizes.
The programming language that runs in web browsers, making websites interactive and handling everything from form validation to real-time updates.
Join 0 others building with AI



