Skip to main content
Get started with Base UI by building your first component. This guide walks you through installing the library and creating a styled button.
1

Install Base UI

Install the @base-ui/react package using your preferred package manager:
Base UI requires React 17 or later. Make sure you have React and React DOM installed in your project.
2

Import and use a component

Import the Button component and use it in your app:
App.tsx
Base UI components are unstyled by default, giving you complete control over their appearance.
3

Add styles

Style your button using your preferred method. Here are three common approaches:
App.module.css
App.tsx

State attributes

Base UI components expose data attributes for styling different states:

Next steps

Browse Components

Explore all available components

Styling Guide

Learn different styling approaches

TypeScript

Use Base UI with TypeScript

Accessibility

Build accessible interfaces