DayChip
Loading example…
Compact single-line chip for a day marker.
Import
Section titled “Import”import { DayChip } from "@jcsoftdev/ui/calendar";Single-component entry points tree-shake to just this component: @jcsoftdev/ui/calendar/day-chip.
<DayChip marker={marker} />| Prop | Type | Default | Description |
|---|---|---|---|
marker * |
CalendarMarker |
||
onOpen |
((id: string) => void) |
||
className |
string |
||
classNames |
Partial<Record<DayChipPart, string>> |
Per-part classes merged with cn; consumer classes win. className still targets the root and is merged last. |
|
intent |
string |
||
intentKey |
string |
* marks a required prop.
It also accepts the native props of the element or primitive it renders (for example className, id, aria-* and event handlers).
Storybook stories
Section titled “Storybook stories”Source
Section titled “Source”packages/ui/src/calendar/day-chip/day-chip.tsx