Simple Buttons
A few examples of simple buttons with different styles and sizes.
Installation
Usage
1import { SimpleButton } from '@/components/pumki-ui/buttons/simple';1<SimpleButton>Default SimpleButton</SimpleButton>Props
| Prop | Type | Default | Description |
|---|---|---|---|
variant? | ādefaultā | ādestructiveā | āoutlineā | āsecondaryā | āghostā | ālinkā | āsuccessā | āwarningā | āinfoā | ādarkā | ālightā | āgradientā | āglassā | ādefaultā | Style variant for the button. |
size? | ādefaultā | āsmā | ālgā | āiconā | ādefaultā | Size of the button. |
asChild? | boolean | false | If true, renders children directly with button styles. |
className? | string | - | Additional CSS classes for the button. |
children? | React.ReactNode | - | Button content. |
type? | ābuttonā | āsubmitā | āresetā | ābuttonā | Button type attribute. |
ā¦props | HTMLButtonElement attributes | - | Any other props for the button element. |
Last updated on