Button - Keep React

The Buttons component in the Keep React offers a variety of button types, sizes, and states to meet your design needs. With options for icons and destructiveness, you can create visually appealing and functional buttons for your product.

Table of Contents#

Button Types Variant#

There are lots of button types for the best fits design of your application. Available types : default primary dashed text linkPrimary linkGray outlineGray and outlinePrimary.

Button Colors Variant#

Here are the available color variants for the Button component, each with its own unique color scheme: error info success and warning.

Button Sizes Variant#

Here are the available size options for the Button component : xs sm md lg xl and 2xl.

Button Shape Variant#

There are two available button shape variant: pill and circle props for added variety and style.

Button With Icon#

Our design system, you have the flexibility to position icons on either the left or right side of the button.

API Reference#

Explore the available props for the button component

PropertyDescriptionTypeDefault
hrefURL to navigate when the button is clicked.stringNone
colorColor variant of the button
error
info
success
warning
info
typeType of the button.
primary
dashed
text
linkPrimary
linkGray
outlineGray
outlinePrimary
default
default
notificationLabelLabel for notification badge on the button.stringNone
pillApply pill-shaped styling to the button.booleanfalse
circleApply circular styling to the button.booleanfalse
positionInGroupPosition of the button within a button group.
start
end
middle
start
sizeSize variant of the button.
xs
sm
md
lg
xl
2xl
md
widthWidth of the button
full
half
None
customClassCustom CSS class to be added to the button.stringNone
onClickFunction to be called when the button is clicked.() => voidfunction