Primitives

Date picker

Click the month to jump by month, again to jump by year. Names and digits follow the locale.

Import#

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

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

Props#

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

<DatePicker>

src/components/ui/date-picker.tsx
PropTypeDefaultDescription
idstring—
placeholderstring"Pick a date"
disabledboolean—
clearablebooleantrue
classNamestring—
localestring"en-GB"Month and weekday names and digits, e.g. "bn-BD".
weekStartsOnWeekday10 = Sunday … 6 = Saturday.
valuerequiredstring—"2026-10-10" or "".
onChangerequired(value: string) => void—
minstring—
maxstring—
labels{ today?: string; clear?: string }—

<Label>

src/components/ui/label.tsx
PropTypeDefaultDescription
requiredboolean—

Also takes ComponentPropsWithoutRef<typeof LabelPrimitive.Root>.

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