# @elemental-ui-alpha/date-picker

> Date pickers let users choose dates from a dialog calendar.

Latest version **0.0.2** (published 2020-04-24) · 0 weekly downloads

## Install

```sh
npm install @elemental-ui-alpha/date-picker
pnpm add @elemental-ui-alpha/date-picker
yarn add @elemental-ui-alpha/date-picker
bun add @elemental-ui-alpha/date-picker
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2020-04-24 |
| First published | 2020-04-23 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 12 |
| Unpacked size | 94.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | dsf-release-bot, mitchellhamilton |

## Links

- npm: https://www.npmjs.com/package/@elemental-ui-alpha/date-picker
- npm.io page: https://npm.io/package/@elemental-ui-alpha/date-picker

## Dependencies (12)

- [date-fns](https://npm.io/package/date-fns.md) ^2.9.0
- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.8.3
- [react-day-picker](https://npm.io/package/react-day-picker.md) ^7.4.7
- [@elemental-ui-alpha/a11y](https://npm.io/package/@elemental-ui-alpha/a11y.md) ^0.0.2
- [@elemental-ui-alpha/core](https://npm.io/package/@elemental-ui-alpha/core.md) ^0.0.2
- [@elemental-ui-alpha/icon](https://npm.io/package/@elemental-ui-alpha/icon.md) ^0.0.2
- [@elemental-ui-alpha/field](https://npm.io/package/@elemental-ui-alpha/field.md) ^0.0.2
- [@elemental-ui-alpha/theme](https://npm.io/package/@elemental-ui-alpha/theme.md) ^0.0.0
- [@elemental-ui-alpha/utils](https://npm.io/package/@elemental-ui-alpha/utils.md) ^0.0.2
- [@elemental-ui-alpha/loading](https://npm.io/package/@elemental-ui-alpha/loading.md) ^0.0.2
- [@elemental-ui-alpha/popover](https://npm.io/package/@elemental-ui-alpha/popover.md) ^0.0.2
- [@elemental-ui-alpha/text-field](https://npm.io/package/@elemental-ui-alpha/text-field.md) ^0.0.2

## Recent versions

- 0.0.2 (latest) — 2020-04-24
- 0.0.1 — 2020-04-23
- 0.0.0 — 2020-04-23

## README

# Date Picker

Date pickers allow users to select a single or a range of dates.

```jsx
import { DatePicker, DateRange } from '@elemental-ui-alpha/data-picker';
```

For a date that is known by the user or is not close to today, like a birthday,
consider using a `TextInput` of type `date`.

## Date Picker

Select a single date.

```jsx live
const [value, setValue] = React.useState();

return <DatePicker label="Pay date" onChange={setValue} value={value} />;
```

## Date Range

Select a range between two dates.

```jsx live
const [value, setValue] = React.useState({ from: '', to: '' });

return <DateRange label="Pay period" onChange={setValue} value={value} />;
```

---
_Source: https://npm.io/package/@elemental-ui-alpha/date-picker · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
