Components

DatePicker

<DatePicker />

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

Usage

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

View Source admin-bro-design-system/src/molecules/date-picker.tsx, line 138

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 string as a date

propertyType PropertyType <optional>

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

See:

View Source admin-bro-design-system/src/molecules/date-picker.tsx, line 184