uibrik

Balloon Button

Preview

Customize

Color
Radius18px
Puff0.70
Crease spacing14px
Crease depth0.40
Bounce0.20

Usage

import { BalloonButton } from "@/components/uibrik/balloon-button/balloon-button";

<BalloonButton />

Installation

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

Props

BalloonButton
label
Type string
"Balloon Button"
Button text.
color
Type string
"#000000"
Balloon colour.
radius
Type number
18
Corner radius.
puff
Type number
0.7
How far the surface swells.
creaseSpacing
Type number
14
Distance between folds along the edge.
creaseDepth
Type number
0.4
How deep the folds pinch in.
bounce
Type number
0.2
How far the dent springs back past rest on release.
onClick
Type MouseEventHandler<HTMLButtonElement>
–
Called on click, like any button.
className
Type string
–
Classes for the button.