Skip to content
h v3.13.3
Search the docs
Find a component, section or page.

Date Picker

A button that opens a Calendar in a Popover and shows the picked date in words.

Installation

pnpm add @heyramzi/ui bits-ui

Usage

import * as Popover from "@heyramzi/ui/shadcn/popover";

API reference

Popover

portalProps WithoutChildrenOrChild<ComponentProps<typeof PopoverPortal>>
ref bindable HTMLElement | null
Default null
class string
sideOffset number
Default 4
align string
Default "center"
collisionPadding number
Default 8
...rest
Every prop of Popover.Content from bits-ui
Prop Type Default
portalProps WithoutChildrenOrChild<ComponentProps<typeof PopoverPortal>>
ref bindable HTMLElement | null null
class string
sideOffset number 4
align string "center"
collisionPadding number 8
...rest Every prop of Popover.Content from bits-ui

Calendar

buttonVariant "default" | "outline" | "ghost" | "destructive" | "text" | "dashed"
Default "ghost"
captionLayout "dropdown" | "dropdown-months" | "dropdown-years" | "label"
Default "label"
months CalendarPrimitive.MonthSelectProps["months"]
years CalendarPrimitive.YearSelectProps["years"]
monthFormat CalendarPrimitive.MonthSelectProps["monthFormat"]
yearFormat CalendarPrimitive.YearSelectProps["yearFormat"]
Default "numeric"
day Snippet<[{ day: DateValue; outsideMonth: boolean }]>
ref bindable HTMLElement | null
Default null
value bindable Calendar.Root
placeholder bindable Calendar.Root
class string
weekdayFormat string
Default "short"
locale string
Default "en-US"
disableDaysOutsideMonth boolean
Default false
weekStartsOn number
Default 1
fixedWeeks boolean
Default true
...rest
Every prop of Calendar.Root from bits-ui except child, children
Prop Type Default
buttonVariant "default" | "outline" | "ghost" | "destructive" | "text" | "dashed" "ghost"
captionLayout "dropdown" | "dropdown-months" | "dropdown-years" | "label" "label"
months CalendarPrimitive.MonthSelectProps["months"]
years CalendarPrimitive.YearSelectProps["years"]
monthFormat CalendarPrimitive.MonthSelectProps["monthFormat"]
yearFormat CalendarPrimitive.YearSelectProps["yearFormat"] "numeric"
day Snippet<[{ day: DateValue; outsideMonth: boolean }]>
ref bindable HTMLElement | null null
value bindable Calendar.Root
placeholder bindable Calendar.Root
class string
weekdayFormat string "short"
locale string "en-US"
disableDaysOutsideMonth boolean false
weekStartsOn number 1
fixedWeeks boolean true
...rest Every prop of Calendar.Root from bits-ui except child, children