Patterns

Page header

Rate plans

What each vehicle class pays, per facility.

Import#

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

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

Props#

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

<PageHeader>

src/components/patterns/page-header.tsx
PropTypeDefaultDescription
crumbsCrumb[]—
titlerequiredstring—
descriptionstring—
secondaryReact.ReactNode—
primaryReact.ReactNode—
classNamestring—

<Button>

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

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

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