Primitives
Button
Working variants for product screens (one primary per screen); showcase variants for moments — sign-in, onboarding, upgrade, hero.
ParkingOS for owners
Every car park you run, on one screen.
"use client";
import { Button, Tooltip } from "@waveinno/ui";
import { ArrowRight, Download, Plus, Sparkles, Trash2 } from "lucide-react";
export default function ButtonExample() {
return (
<div className="space-y-5">
<div className="flex flex-wrap items-center gap-2">
<Button variant="primary">
<Plus /> Primary
</Button>
<Button>Secondary</Button>
<Button variant="subtle">Subtle</Button>
<Button variant="ghost">Ghost</Button>
<Button variant="danger">
<Trash2 /> Danger
</Button>
<Button variant="link">Link</Button>
</div>
<div className="flex flex-wrap items-center gap-2.5">
<Button variant="gradient">
<Sparkles /> Gradient
</Button>
<Button variant="glow">Glow</Button>
<Button variant="dark">Dark</Button>
<Button variant="outline">Outline</Button>
<Button variant="elevated">Elevated</Button>
</div>
<div className="flex flex-wrap items-center gap-2.5">
<Button variant="gradient" size="xl" shape="pill">
Start free <ArrowRight />
</Button>
<Button variant="elevated" size="xl" shape="pill">
Book a demo
</Button>
</div>
{/* Glass and white are for heroes: a rich backdrop with light in it. */}
<div className="relative isolate overflow-hidden rounded-[18px] bg-[#0f0a2e] px-6 py-10 sm:px-10">
<div className="absolute -left-16 -top-20 -z-10 size-72 rounded-full bg-[#1437d3] opacity-70 blur-3xl" />
<div className="absolute -bottom-24 right-0 -z-10 size-80 rounded-full bg-[#7560fd] opacity-60 blur-3xl" />
<div className="absolute inset-0 -z-10 bg-[radial-gradient(rgba(255,255,255,.08)_1px,transparent_1px)] [background-size:18px_18px] [mask-image:linear-gradient(180deg,black,transparent)]" />
<p className="text-[11px] font-semibold uppercase tracking-[0.14em] text-white/60">ParkingOS for owners</p>
<p className="disp mt-2 max-w-md text-[26px] font-semibold leading-tight text-white">Every car park you run, on one screen.</p>
<div className="mt-6 flex flex-wrap items-center gap-3">
<Button variant="white" size="lg" shape="pill">
Start free <ArrowRight />
</Button>
<Button variant="glass" size="lg" shape="pill">
Watch the tour
</Button>
<Button variant="glass" size="icon" shape="pill" aria-label="Download">
<Download />
</Button>
</div>
</div>
<div className="flex flex-wrap items-center gap-2">
<Button size="sm">Small</Button>
<Button>Default</Button>
<Button size="lg">Large</Button>
<Tooltip label="Export CSV" shortcut="E">
<Button size="icon" aria-label="Export">
<Download />
</Button>
</Tooltip>
<Button loading>Saving</Button>
<Button disabled>Disabled</Button>
</div>
</div>
);
}Examples#
Each one on its own: copy its code into your app, or copy it to Figma and paste it on the canvas as layers.
Primary
The one action a screen is for. One per screen.
"use client";
import { Button } from "@waveinno/ui";
import { Plus } from "lucide-react";
export default function ButtonPrimaryExample() {
return (
<Button variant="primary">
<Plus /> New invoice
</Button>
);
}Secondary
The default: every other action, next to a primary or on its own.
"use client";
import { Button } from "@waveinno/ui";
export default function ButtonSecondaryExample() {
return (
<Button>Export</Button>
);
}Subtle
A brand-tinted action that should not compete with the primary.
"use client";
import { Button } from "@waveinno/ui";
export default function ButtonSubtleExample() {
return (
<Button variant="subtle">Add a note</Button>
);
}Ghost
Toolbars and quiet actions: no fill until you hover.
"use client";
import { Button } from "@waveinno/ui";
export default function ButtonGhostExample() {
return (
<Button variant="ghost">Cancel</Button>
);
}Danger
Deleting or anything that cannot be undone. Pair it with a confirmation.
"use client";
import { Button } from "@waveinno/ui";
import { Trash2 } from "lucide-react";
export default function ButtonDangerExample() {
return (
<Button variant="danger">
<Trash2 /> Delete
</Button>
);
}Link
An action that reads as text inside a sentence or a card.
"use client";
import { Button } from "@waveinno/ui";
export default function ButtonLinkExample() {
return (
<Button variant="link">View all payments</Button>
);
}Gradient
Showcase: sign-up, upgrade and hero calls to action. A light sweeps across on hover.
"use client";
import { Button } from "@waveinno/ui";
import { Sparkles } from "lucide-react";
export default function ButtonGradientExample() {
return (
<Button variant="gradient">
<Sparkles /> Upgrade to Pro
</Button>
);
}Glow
Showcase: a primary that lifts off the page.
"use client";
import { Button } from "@waveinno/ui";
export default function ButtonGlowExample() {
return (
<Button variant="glow">Get started</Button>
);
}Dark
Showcase: a deep, premium action that holds on light and dark pages.
"use client";
import { Button } from "@waveinno/ui";
export default function ButtonDarkExample() {
return (
<Button variant="dark">Talk to sales</Button>
);
}Outline
Showcase: a brand-coloured secondary for marketing pages.
"use client";
import { Button } from "@waveinno/ui";
export default function ButtonOutlineExample() {
return (
<Button variant="outline">See pricing</Button>
);
}Elevated
Showcase: a white card of a button that rises on hover.
"use client";
import { Button } from "@waveinno/ui";
export default function ButtonElevatedExample() {
return (
<Button variant="elevated">Book a demo</Button>
);
}White and glass on a hero
For a dark or photo backdrop: white is the primary there, glass the secondary.
"use client";
import { Button } from "@waveinno/ui";
import { ArrowRight } from "lucide-react";
export default function ButtonOnDarkExample() {
return (
<div className="relative isolate w-full overflow-hidden rounded-[16px] bg-[#0f0a2e] px-6 py-8">
<div className="absolute -left-12 -top-16 -z-10 size-56 rounded-full bg-[#1437d3] opacity-70 blur-3xl" />
<div className="absolute -bottom-20 right-0 -z-10 size-64 rounded-full bg-[#7560fd] opacity-60 blur-3xl" />
<div className="flex flex-wrap items-center justify-center gap-3">
<Button variant="white" size="lg" shape="pill">
Start free <ArrowRight />
</Button>
<Button variant="glass" size="lg" shape="pill">
Watch the tour
</Button>
</div>
</div>
);
}Sizes and shapes
sm for dense tables, the default for forms, lg and xl for marketing; pill rounds any of them.
"use client";
import { Button } from "@waveinno/ui";
export default function ButtonSizesExample() {
return (
<div className="flex flex-wrap items-center justify-center gap-2.5">
<Button size="sm">Small</Button>
<Button>Default</Button>
<Button size="lg">Large</Button>
<Button size="xl" variant="primary" shape="pill">
Extra large
</Button>
</div>
);
}Icon button
A square button for an icon. Always give it an aria-label; add a tooltip with the shortcut.
"use client";
import { Button, Tooltip } from "@waveinno/ui";
import { Download, Plus, Trash2 } from "lucide-react";
export default function ButtonIconExample() {
return (
<div className="flex items-center gap-2">
<Tooltip label="Export CSV" shortcut="E">
<Button size="icon" aria-label="Export">
<Download />
</Button>
</Tooltip>
<Button size="icon" variant="primary" aria-label="Add">
<Plus />
</Button>
<Button size="icon" variant="ghost" shape="pill" aria-label="Delete">
<Trash2 />
</Button>
</div>
);
}Loading and disabled
loading shows a spinner and blocks clicks; disabled greys it out.
"use client";
import { Button } from "@waveinno/ui";
export default function ButtonStatesExample() {
return (
<div className="flex flex-wrap items-center justify-center gap-2.5">
<Button variant="primary" loading>
Saving
</Button>
<Button disabled>Disabled</Button>
</div>
);
}Animated#
Motion that earns its place: free ones to copy now, and Pro ones whose code and Figma copy come with a Wavi Pro licence. They respect the visitor's reduced-motion setting.
ShimmerFree
A band of light crosses every few seconds: draws the eye to one call to action.
"use client";
import { Button } from "@waveinno/ui";
import { Sparkles } from "lucide-react";
export default function ButtonShimmerExample() {
return (
<Button variant="primary" size="lg" className="relative overflow-hidden">
<span aria-hidden className="pointer-events-none absolute inset-y-0 left-0 w-1/3 animate-wv-sweep bg-[linear-gradient(90deg,transparent,rgba(255,255,255,.45),transparent)]" />
<Sparkles /> Try Pro free
</Button>
);
}Arrow nudgeFree
The arrow steps forward on hover: says 'this takes you somewhere'.
"use client";
import { Button } from "@waveinno/ui";
import { ArrowRight } from "lucide-react";
export default function ButtonArrowExample() {
return (
<Button variant="primary" size="lg" shape="pill" className="group">
Continue
<ArrowRight className="transition-transform duration-300 ease-[cubic-bezier(.34,1.56,.64,1)] group-hover:translate-x-1" />
</Button>
);
}Spring pressFree
Sinks when pressed and springs back: a tap you can feel.
"use client";
import { Button } from "@waveinno/ui";
export default function ButtonPressExample() {
return (
<Button variant="elevated" size="lg" className="transition-transform duration-300 ease-[cubic-bezier(.34,1.56,.64,1)] active:scale-[.93]">
Press me
</Button>
);
}Attention ringFree
A soft ring pulses out: for the one thing a new user should do first.
"use client";
import { Button } from "@waveinno/ui";
import { Plus } from "lucide-react";
export default function ButtonAttentionExample() {
return (
<span className="relative inline-flex">
<span aria-hidden className="absolute inset-0 animate-ping rounded-full bg-primary/40 [animation-duration:1.8s]" />
<Button variant="primary" shape="pill" className="relative">
<Plus /> Add your first car park
</Button>
</span>
);
}Save, then doneFree
Spinner while it works, then a tick that pops in, then back to normal.
"use client";
import { Button } from "@waveinno/ui";
import { Check } from "lucide-react";
import * as React from "react";
export default function SaveButtonExample() {
const [state, setState] = React.useState<"idle" | "saving" | "done">("idle");
const timers = React.useRef<number[]>([]);
React.useEffect(() => () => timers.current.forEach(clearTimeout), []);
const save = () => {
setState("saving");
timers.current.push(window.setTimeout(() => setState("done"), 1200), window.setTimeout(() => setState("idle"), 2800));
};
return (
<Button variant="primary" loading={state === "saving"} onClick={save} className="min-w-[132px]">
{state === "done" ? (
<>
<Check className="animate-wv-pop" /> Saved
</>
) : state === "saving" ? (
"Saving"
) : (
"Save changes"
)}
</Button>
);
}Magnetic Pro
Leans towards the pointer and springs back when it leaves.
This example's code comes with Wavi Pro
One payment for every Pro component, block and template, with every update.
Spotlight Pro
A soft light follows the pointer across the button.
This example's code comes with Wavi Pro
One payment for every Pro component, block and template, with every update.
Border beam Pro
A beam of brand colour runs round the edge, for hero and upgrade actions.
This example's code comes with Wavi Pro
One payment for every Pro component, block and template, with every update.
Ripple Pro
Each click sends a ripple out from where it landed.
This example's code comes with Wavi Pro
One payment for every Pro component, block and template, with every update.
Text roll Pro
On hover the label rolls up and a fresh copy rolls in from below.
This example's code comes with Wavi Pro
One payment for every Pro component, block and template, with every update.
Import#
Everything comes from the package root. The example above uses:
import { Button, Tooltip } from "@waveinno/ui";Props#
Read from the source of this version, so they match the code exactly.
<Button>
src/components/ui/button.tsx| Prop | Type | Default | Description |
|---|---|---|---|
asChild | boolean | false | |
loading | boolean | — |
Also takes ButtonHTMLAttributes<HTMLButtonElement> & VariantProps<typeof buttonVariants>.
<Tooltip>
src/components/ui/tooltip.tsx| Prop | Type | Default | Description |
|---|---|---|---|
labelrequired | string | — | |
shortcut | string | — | |
childrenrequired | React.ReactNode | — | |
side | "top" | "right" | "bottom" | "left" | "bottom" |
Install#
If the project does not have the package yet, add it, then follow the setup for Next.js or Vite once.
$ npm install @waveinno/ui