Installing

Install the library

npm install @apideck/components

Getting started

Import the component

import { Button } from '@apideck/components'

Basic

You can define the type of a button using the

type
prop. There are
primary
,
default
,
secondary
,
outline
,
dashed
, and
text
,

Loading

Variants

You can define the type of a button using the

variant
prop.

There are

primary
,
secondary
,
outline
,
danger
, and
danger-outline
. The default variant is
primary
.

Loading

Size

You can define the size of a button using the

size
prop.

There are

small
,
regular
, and
large
. The default size is
regular
.

Loading

Loading

Buttons can be in a loading state. Provide the

isLoading
prop to set the loading state of the button.

Loading

Props

Coming soon