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 147

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 193

SoftwareBrothers

Proudly built and maintained by SoftwareBrothers

Software House with a passion for both JavaScript and TypeScript.

See what we do See what we believe in

Proudly built and maintained by

SoftwareBrothers