Skip to Content
šŸŽ‰Introducing Pumki UI

Simple Buttons

A few examples of simple buttons with different styles and sizes.

Pumki UIPumki UI
Link as SimpleButton

Installation

Usage


1import { SimpleButton } from '@/components/pumki-ui/buttons/simple';

1<SimpleButton>Default SimpleButton</SimpleButton>

Props

PropTypeDefaultDescription
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?booleanfalseIf 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.
…propsHTMLButtonElement attributes-Any other props for the button element.
Last updated on