Documentation
Components
Button

Button

The Button component is a versatile and customizable button element that can be used in various contexts. It supports different variants, colors, sizes, and additional actions.

Installation

Install the package

npm i @start-base/start-ui

Add the styles

To use the React form elements styles in a Next.js project, import the styles in your layout.tsx file.

app/layout.tsx
import "@start-base/start-ui/styles.css";

Import the component

import Button from '@start-base/start-ui/Button';

Usages

Button Primary

Button Secondary

Button Destructive

API

NameTypeDefaultVariantsDescription
childrenReactNodeChildren of the Button
classNamestringClassname of the Button
variantstringdefaultdefault link outline ghostVariant of the button
colorstringprimaryprimary secondary destructiveColor of the button
sizestringmediumicon small medium largeSize of the button
fluidbooleanfalseFluid of the button
typestringbuttonsubmit reset buttonType of the Button
disabledbooleanfalseDisabled of the Button
loadingbooleanfalseLoading of the Button