Dasar UI Library

Datepicker

A fully featured date selection component utilizing Dasar Calendar internally, supporting smart placement, localization, and rich custom templating.
Basic Usage
Select a Date
Choose your birth date

Returned Value: None

Appearance & Sizes
Outline (Default)
Select date
Filled Appearance
Select date
Subtle Appearance
Select date
Small Size
Select date
Medium Size
Select date
Large Size
Select date
Formatting & Locales
Indonesian Format (id-ID)
17 Agustus 2026
Displays as: 17 Agustus 1945

Bound output: 2026-08-17

American Format (en-US)
10/01/2026
Outputs the raw JS Date timestamp

Bound output: 1790826377020

Validation & States
Clearable Field
01-10-2026
Error State
Select date
Please select a valid date in the future.
Disabled State
Select date
You cannot interact with this field.
Smart Placements
Bottom Start (Default)
Select date
Top End
Select date
Dropdown opens upwards and aligns right.
Custom Content Slots
Meeting Date
*Required
Select date
Select a date during business days.
Dropdown Footer Actions
With Footer Actions
Select a date

API Reference

Property
Type
Default
Description
valueany null The currently selected date. Supports Angular two-way binding [(value)] and Reactive Forms.
display-formatstring 'DD-MM-YYYY' The date format shown in the input trigger (e.g., dd MMMM yyyy).
value-formatstring 'yyyy-MM-dd' The format of the returned value. Accepts date-fns strings, "iso", or "timestamp".
localestring 'en-US' Locale used for formatting month names, weekdays, etc. (e.g., id-ID).
appearance'outline' | 'filled' | 'subtle' 'outline' The visual style of the trigger input.
size'sm' | 'md' | 'lg' 'md' Controls the height and typographic scale of the input.
placementDasarDatepickerPlacement 'bottom-start' Preferred dropdown position. Auto-flips if there is no space.
clearableboolean false Displays an "x" icon to clear the selected date when hovered.
disabledboolean false Disables user interaction.
errorboolean false Applies an error validation style to the input and hint text.
full-widthboolean false Forces the host element to 100% width.
label / extra-label / hintstring undefined Helper text rendered around the component.
(valueChange) / (dateSelected)EventEmitter<any> - Emitted when a date is selected.
[...-slot]Content Slot - Directives like [prefix-slot], [label-slot], [extra-footer-slot] to project custom HTML.