Quick Start
Build your first Material UI component in under 5 minutes. This tutorial walks you through creating a simple user profile card.Prerequisites
Before you begin, make sure you have:- A React project set up (Create React App, Vite, or Next.js)
- Material UI installed (see Installation)
- Basic knowledge of React and JSX
Step 1: Create Your First Component
Import Material UI Components
Create a new file These imports give you access to Material UI’s Card, Button, Typography, and layout components.
ProfileCard.tsx and import the components you’ll need:ProfileCard.tsx
Build the Component Structure
Create a profile card component with an avatar, name, description, and actions:The
ProfileCard.tsx
sx prop provides powerful inline styling with theme access.Step 2: Add Interactivity
Let’s make the buttons functional by adding state and event handlers:ProfileCard.tsx
Step 3: Customize with Theme
Material UI components use the theme for consistent styling. Customize colors, spacing, and more:main.tsx
CssBaseline component normalizes styles across browsers and applies Material Design baseline styles.
Understanding Key Props
Button Props
Buttons support multiple variants, colors, and sizes from the source code:TextField Props
Text fields are versatile input components with extensive customization:Card Props
Cards are surfaces for displaying content and actions:Common Patterns
Responsive Layout with Grid
Form with Validation
Next Steps
Usage Patterns
Learn essential patterns and best practices for Material UI
Component API
Explore the complete API documentation for all components
Templates
Browse production-ready templates to kickstart your project
Theming
Deep dive into customizing Material UI’s theme system