---
title: Button
description: A clickable element that triggers an action.
links:
doc: https://base-ui.com/react/components/button#api-reference
---
## Preview
## Installation
CLI
Manual
```bash
npx @olyx/cli@latest add button
```
Install the following dependencies:
```bash
npm install @base-ui/react
```
Copy and paste the following code into your project.
Update the import paths to match your project setup.
## Usage
```tsx
import { Button } from "@/components/ui/button"
```
```tsx
```
## API Reference
#### Button
Styled wrapper for `Button` from Base UI.
| Prop | Type | Default |
| --------- | ----------------------------------------------- | ----------- |
| `variant` | `"primary" \| "neutral" \| "error" \| "link"` | `"primary"` |
| `mode` | `"filled" \| "lighter" \| "ghost" \| "stroke"` | `"filled"` |
| `size` | `"sm" \| "md" \| "lg"` | `"md"` |
| `asIcon` | `boolean` | `false` |
| `asRtl` | `boolean` | `false` |
All props from [Base UI Button](https://base-ui.com/react/components/button#api-reference) are also supported.
## Examples
### Primary
### Neutral
### Error
### Sizes
### With Icon
### Icon Only
### Icon Only Sizes
### Loading
### Disabled