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.
Import and use a component
Import the Button component and use it in your app:Base UI components are unstyled by default, giving you complete control over their appearance.
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