Button

Stable

Interactive button component with ripple effect and multiple variants.

Import

import { Button } from '@brutal-ui/react';

Variants

<Button variant='primary'>Primary</Button>
<Button variant='secondary'>Secondary</Button>
<Button variant='success'>Success</Button>
<Button variant='danger'>Danger</Button>
<Button variant='outline'>Outline</Button>
<Button variant='ghost'>Ghost</Button>

Sizes

<Button size='sm'>Small</Button>
<Button size='md'>Medium</Button>
<Button size='lg'>Large</Button>

States

<Button>Normal</Button>
<Button disabled>Disabled</Button>

With Icons

<Button>
  <span className='mr-2'>💾</span>
  Save
</Button>
<Button variant='danger'>
  <span className='mr-2'>🗑️</span>
  Delete
</Button>

Props

PropTypeDefaultDescription
variantstring"primary"Button style variant
sizestring"md"Button size
disabledbooleanfalseDisable button interactions
onClickfunction-Click event handler