Btn-standard
Installation
Usage
import { Button } from '@/components/pumki-ui/buttons/btn-standard.tsx';<Button />Example
As Input
Props
| Prop | Type | Default | Description |
|---|---|---|---|
className | string | - | Custom CSS classes for the button. |
selected | boolean | - | Marks the button as selected (sets data-state=âopenâ). |
variant | âprimaryâ | âmonoâ | âdestructiveâ | âsecondaryâ | âoutlineâ | âdashedâ | âghostâ | âdimâ | âforegroundâ | âinverse' | 'primaryâ | Visual style of the button. |
shape | âdefaultâ | âcircle' | 'defaultâ | Shape of the button (default or circle). |
appearance | âdefaultâ | âghost' | 'defaultâ | Appearance style of the button. |
mode | âdefaultâ | âiconâ | âlinkâ | âinput' | 'defaultâ | Button mode (standard, icon, link, input). |
size | âlgâ | âmdâ | âsmâ | âicon' | 'mdâ | Size of the button. |
autoHeight | boolean | false | If true, button height is set to auto. |
underlined | âsolidâ | âdashedâ | - | Underline style for link mode. |
underline | âsolidâ | âdashedâ | - | Underline style for link mode (hover). |
asChild | boolean | false | Renders as a child component (Radix Slot). |
placeholder | boolean | false | Applies muted foreground color for input mode. |
icon | LucideIcon | - | Lucide icon to display in the button (for ButtonArrow). |
âŚprops | All native button props | - | Any other props for the HTML <button> element. |
Last updated on