> ## Documentation Index
> Fetch the complete documentation index at: https://docs.uniwind.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Button

> Learn how to use Button with Uniwind className props

## Overview

The `Button` component is a basic button with a simple platform-specific appearance. Uniwind provides className prop support for styling this component.

## Styling Convention

<Info>
  **For `style` props:** Use regular Tailwind classes directly (e.g., `className="p-4"`).

  **For non-style props** (like `color`): Use the `accent-` prefix (e.g., `colorClassName="accent-blue-500"`).
</Info>

<Warning>
  **Since 1.6.2:** Passing a className without the `accent-` prefix to a color prop will log a warning to the development console.
</Warning>

## Uniwind Bindings

<ParamField path="colorClassName" type="string">
  Maps to the `color` prop. Requires `accent-` prefix for color values.
</ParamField>

## Usage Example

```tsx theme={null}
import { Button } from 'react-native'

<Button
  title="Press me"
  colorClassName="accent-blue-500 dark:accent-blue-400"
  onPress={() => console.log('Pressed')}
/>
```
