Skip to main content

Button

This is the <Button /> component


Examples

Button types

Primary button variants

Secondary button variants

Tertiary button variants

Button sizes


Basic Usage

import Button from '@candy/kitkat/button'

export const MyComponent = () => {
return <Button>My Button Text</Button>
}

Component API

NameTypeDefaultDescription
appearanceprimary / secondary / tertiarycolor Variants
childrenReactNode-Button text /icons
colorSchemeblack / white-color variants
disabledboolean-disable button
fullWidthboolean-make width 100%
onClick() => void-Click event,
outlinedboolean-outlined
justifyflex-start / flex-end / center / space-between / space-around / space-evenly / start / end / left / right / safe / unsafe-Button alignment
sizesm / md / lg-Button size
uppercaseboolean-Make text uppercase