Components

DatePicker

<DatePicker />

Component responsible for showing dates. It is a wrapper to react datepicker.

Usage

import { DatePicker, DatePickerProps } from '@adminjs/design-system'
See:

View Source adminjs-design-system/src/molecules/date-picker/date-picker.tsx, line 150

Example

Type Definitions

object

# DatePickerProps

Props for DatePicker
Properties:
Name Type Attributes Description
{...} any

Any custom props to pass down to the ReactDatePicker

disabled boolean <optional>

If datepicker should be disabled

value string | Date <optional>

selected date

onChange function

on change callback taking Date object as a date

propertyType PropertyType <optional>

property type, could be either 'date' or 'datetime'

See:

View Source adminjs-design-system/src/molecules/date-picker/date-picker.tsx, line 196