HomeLabHire Me
ml-ui111 components

Get started

IntroductionInstallation

UI

Dots

Dot AccordionDot CalendarDot CheckboxDot CodeDot CommandDot ContentsDot CountdownDot CrossingDot FuseDot GaugeDot InstallDot KnobDot LogosDot MenuDot PaginationDot PasswordDot Price RangeDot PricingDot ProgressDot QueueDot RatingDot Reading ProgressDot SelectDot SignupDot SliderDot StatusDot StepperDot SwitchDot TabsDot ToastDot TooltipFlip-Dot CounterLED Marquee

Dither

Dither AvatarDither BannerDither CompareDither GlobeDither PortraitDither SkeletonDither TrailDither UploadDot CookiesDot DialogDot KeysDot ReceiptDot VariantsLenticular Card

More

Pollen TrailSplit-FlapTheme Toggle

Text

Dither RotatorDot TypeEnigma TextInk Print

Data viz

Dots

Contribution FieldDot BarsDot ChartDot Waffle

Dither

Dither DensityDither MapDither Stack

Media

Dots

Dot EqualizerDot WaveformVoice Note

Dither

Dither Scrubber

AI

Agent StepsAnswer VersionsCitation ChipConfidence GlassContext MeterDiffusion ImageDiffusion TextDither MaskDoc ReaderDot DictationGenerate ButtonGhost TextModel PickerPrompt BarResponse ActionsRevising TextSpoken ReplyThinking OrbThinking TraceToken MeterToken StreamWord Alternatives

Useful

Arrival TimeBest ShotCareer LineForgiving SearchGesture PadHeard AsHonest PinImage PaletteLikeness GridNear Miss SearchRain DropsSoft CorrectSpending SortSticker LiftTaste Ledger

Backgrounds

ButterfliesDandelionsDuck PondFirefliesKoi PondLight WellMarigoldsTrain WindowWhite Blossom

ml-ui / UI

Dot Calendar

A date picker drawn in a small dot face. A picked day is a solid block with its number knocked out, a range is a stipple running between its ends (it follows the pointer while you choose the second), and marked days carry a dot under the number. Underneath is a real grid of buttons, so the keyboard works as it should: arrows, Page Up and Down for months (with Shift for years), Home and End, and T for today.

Needs: None. Canvas 2D over a grid of real buttons.

Customize

mode
locale

Props

PropTypeDefaultDescription
mode"single" | "range""single"Pick one day, or a start and an end.
valuestring | null | DateRange–The picked day as YYYY-MM-DD, or { start, end } in range mode. Leave unset to let it keep its own.
defaultValuestring | null | DateRange–What's picked at first, when value isn't set.
onChange(value) => void–Called with the day, or the range, as it's picked.
defaultMonthstring–The month shown first. The picked day's month, or this one, by default.
minstring–The earliest day that can be picked.
maxstring–The latest day that can be picked.
disabled(date: string) => boolean–Days that can't be picked, like weekends or booked dates.
marksRecord<string, string | true | (string | true)[]>–Days with something on: a dot under the number in a colour, or up to three.
localestring"en"Month and weekday names, and which day weeks start on.
weekStartnumber–First day of the week, 0 Sunday to 6 Saturday. From the locale by default.
tonestring–The selection, today and focus colour. The page's accent by default.
pitchnumber4Size of one dot in px. The calendar is 77 by 70 dots.
labelstring"Calendar"Read out by screen readers.
classNamestring–Class on the calendar.
styleCSSProperties–Style on the calendar.
← Dot AccordionDot Checkbox →