Wave Card

A card with rolling waves along its bottom edge that rise on hover.

no dependenciesMIT · free

Starter

Hover to raise the tide.

Sunset

Any colors you like.

Installation

npx shadcn@latest add https://ombakui.com/r/wave-card.json

Usage

import { WaveCard } from "@/components/wave-card";

<WaveCard className="h-64">
  <div className="p-6">Starter</div>
</WaveCard>

Props

PropTypeDefaultDescription
children*ReactNode–
colorsstring[]ocean bluesWave colors from back to front.
levelnumber0.35Wave height as a share of the card height, 0–1.
riseOnHoverbooleantrueRaise the water when hovered.
classNamestring–