Display UI

Button

A key interactive element that triggers an action or event. Can be styled in various ways to match design intent and hierarchy.

Loading...

Installation

npx shadcn@latest add https://display-ui.vercel.app/r/Button

Usage

import { Button } from "@/components/display-ui/Button"
<Button>Button</Button>

API

Button Props

For Button Component

AttributeTypeDescriptionDefault
variant"solid" | "outline" | "ghost" | "link"Controls the visual style and behavior of the button."solid"
size"sm" | "md" | "lg"Controls the size and padding of the button."md"
radius"sm" | "md" | "lg" | "xl" | "full"Controls the border radius of the button."md"
classNamestringAdditional CSS classes to customize the button styling.-

Examples

Default

Outline

Ghost

Credits

This component is inspired by Rehman Kalawant Design Shared On Github.

On this page