Patterns

Note

Soft, outline, gradient; any tone; title, icon and an action.

Notes explain a rule in one or two sentences, next to the thing it governs.

Vehicles inside keep their rate

A new rate applies to sessions that start after you publish it.

Gate 2 has been offline for 6 minutes

Exits are being recorded on the attendant phone and will sync.

3 payments failed

bKash did not confirm them. The drivers were asked to pay again.

ParkingOS Pro

Monthly parkers, cash control and reports for every car park you run.

Import#

Everything comes from the package root. The example above uses:

your-component.tsx
import { Button, Note } from "@waveinno/ui";

Props#

Read from the source of this version, so they match the code exactly.

<Button>

src/components/ui/button.tsx
PropTypeDefaultDescription
asChildbooleanfalse
loadingboolean—

Also takes ButtonHTMLAttributes<HTMLButtonElement> & VariantProps<typeof buttonVariants>.

<Note>

src/components/patterns/page-header.tsx
PropTypeDefaultDescription
childrenrequiredReact.ReactNode—
classNamestring—
toneTone"accent"
titleReact.ReactNode—
iconboolean | React.ReactNode—true = the tone's icon; or pass your own.
actionReact.ReactNode—
variant"soft" | "outline" | "gradient""soft"

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