zedkit
@zedtech/zedkit-ui

Pick a date from a popover

Button that opens a calendar in a popover. `id` pairs with `FieldLabel`.

alpha

At a glance

Preview

@zedtech/zedkit-ui — DatePicker, DatePickerProps

Preview

View props table

Install

pnpm add @zedtech/zedkit-ui

Latest: 0.6.4 (via changesets).

Example

Usage
import { DatePicker, Field, FieldLabel } from "@zedtech/zedkit-ui";
const [due, setDue] = useState<Date | undefined>();
<Field>
  <FieldLabel htmlFor="due">Due date</FieldLabel>
  <DatePicker id="due" value={due} onValueChange={setDue} />
</Field>

Wraps: react-day-picker, @radix-ui/react-popover

Props

Prop

Type

On this page