Browse components
Wavy Button
Liquid sloshes at the bottom and rises in a rolling SVG wave to fill the button on hover.
Installation
npx shadcn@latest add @glint-ui/wavy-buttonFirst time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glint-ui-seven.vercel.app/r/wavy-button.json
Usage
import { WavyButton } from "@/components/ui/wavy-button";
<WavyButton restLevel={14}>Dive in</WavyButton>Props
| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | — | Button label. |
| speed | number | 2.4 | Seconds per wave cycle. |
| restLevel | number | 14 | Liquid level at rest, % of the button height. |
| className | string | — | Extra classes for the root element. |