81 Pro components and page blocks

Get Pro

Soft Button

New

Preview

Customize

Primary
Medium
Radius10px

Installation

npx shadcn@latest add https://uibrik.com/r/soft-button.json
Adds the files to components/uibrik/soft-button and installs @tabler/icons-react. With the @uibrik namespace set up: npx shadcn@latest add @uibrik/soft-button.

Usage

import { SoftButton } from "@/components/uibrik/soft-button/soft-button";​<SoftButton  children="Continue"  variant="primary"  size="md"  radius={10}  iconRight={<IconArrowRight size={16} stroke={2} />}  // icon={<…/>}/>

Props

SoftButton
children
Type string
"Continue"
The label.
variant
Type "primary" | "secondary" | "accent"
"primary"
Dark on light (flips in dark mode), quiet neutral, or your accent colour.
color
Type string
"#4f46e5"
Accent colour, for the accent variant.
size
Type "sm" | "md" | "lg"
"md"
Height, padding and type size.
radius
Type number
10
Corner radius.
icon
Type ReactNode
–
Shown before the label.
iconRight
Type ReactNode
<IconArrowRight />
Shown after the label. Pass null for none.
...button props
Type ButtonHTMLAttributes
–
onClick, disabled, type, className and the rest pass through to the button.