DocsComponents

Button

Button

Styled button component.

Installation

CLI

Add component to your project.

npx @perceptui/cli@latest add button

Import from @perceptui/ui

Note: If you have installed @perceptui/ui package, then import Button from @perceptui/ui.

import { Button } from "@perceptui/ui";

API References

PropTypeDescriptionDefault
variant"solid" | "outline" | "ghost"Form of the Buttonsolid
colorstringColor of the Buttonblue
radius"none"|"sm"|"md"|"lg"|"xl"|"full"Radius of the Buttonsm
size"xs"|"sm"|"md"|"lg"|"xl"Size of the Buttonsm
classNamestringclassName_

Examples

Variant

Use the variant prop to control the visual style of the button.

Solid Variant

Outline Variant

Ghost Variant

Color

Use the color prop to control the color of the button.

Color with solid variant

Color with outline variant

Color with ghost variant

There are more color properties. Take your time to explore

Radius

Use the radius prop to assign a specific radius value.

Size

Use the size prop to assign a specific size value.

Last updated on