# material-ui-thai-datepickers

> React components, that implements material design pickers for material-ui v1

Latest version **1.1.7** (published 2019-08-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install material-ui-thai-datepickers
pnpm add material-ui-thai-datepickers
yarn add material-ui-thai-datepickers
bun add material-ui-thai-datepickers
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.7 |
| Published | 2019-08-30 |
| First published | 2018-09-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 6 |
| Unpacked size | 1.3 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2306 |
| Author | Dmitriy Kovalenko |
| Maintainers | kizzetipong |
| Keywords | material-ui, pickers, material-ui-thai-datepickers, @material-ui/pickers, datepicker, timepicker, date-picker, time-picker, react, react-component, material design |

## Links

- npm: https://www.npmjs.com/package/material-ui-thai-datepickers
- Repository: https://github.com/mui-org/material-ui-pickers
- Homepage: https://material-ui-pickers.dev/
- Issues: https://github.com/mui-org/material-ui-pickers/issues
- npm.io page: https://npm.io/package/material-ui-thai-datepickers

## Dependencies (6)

- [clsx](https://npm.io/package/clsx.md) ^1.0.2
- [rifm](https://npm.io/package/rifm.md) ^0.7.0
- [tslib](https://npm.io/package/tslib.md) ^1.9.3
- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.2.0
- [@types/styled-jsx](https://npm.io/package/@types/styled-jsx.md) ^2.2.8
- [react-transition-group](https://npm.io/package/react-transition-group.md) ^4.0.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.1.7 (latest) — 2019-08-30
- 1.1.6 — 2019-08-30
- 1.1.5 — 2019-08-30
- 1.1.4 — 2019-08-30
- 1.1.3 — 2019-08-30
- 1.1.2 — 2019-08-30
- 1.1.1 — 2019-08-29
- 1.0.4 — 2018-09-10
- 1.0.3 — 2018-09-10
- 1.0.2 — 2018-09-07
- 1.0.1 — 2018-09-06
- 1.0.0 — 2018-09-06

## README

<p align="center">
  <a href="https://material-ui.com/" rel="noopener" target="_blank"><img width="200" src="https://material-ui-pickers.dev/static/meta-image.png" alt="Material-ui-pickers logo"></a></p>
</p>

<h1 align="center">Material-UI Thai datepickers</h1>

<div align="center">
This package is forked from [material-ui-pickers](https://www.npmjs.com/package/material-ui-pickers)

Accessible, customizable, delightful date & time pickers for [@material-ui/core](https://material-ui.com/)

[![npm package](https://img.shields.io/npm/v/@material-ui/pickers.svg)](https://www.npmjs.org/package/@material-ui/pickers)
[![npm download](https://img.shields.io/npm/dm/@material-ui/pickers.svg)](https://www.npmjs.org/package/@material-ui/pickers)
[![codecov](https://codecov.io/gh/mui-org/material-ui-pickers/branch/next/graph/badge.svg)](https://codecov.io/gh/mui-org/material-ui-pickers)
[![Bundle Size](https://badgen.net/bundlephobia/minzip/@material-ui/pickers)](https://bundlephobia.com/result?p=@material-ui/pickers@latest)
[![CircleCI](https://circleci.com/gh/mui-org/material-ui-pickers.svg?style=svg)](https://circleci.com/gh/mui-org/material-ui-pickers)
[![Cypress.io tests](https://img.shields.io/badge/cypress.io-tests-green.svg?style=flat-square)](https://dashboard.cypress.io/#/projects/qow28y/runs)
[![This project is using Percy.io for visual regression testing.](https://percy.io/static/images/percy-badge.svg)](https://percy.io/mui-org/material-ui-pickers)
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)

</div>

### Installation

Note that this package reqiures `@material-ui/core` **v4**. It will not work with the old v3. Please read the [migration guide](https://material-ui-pickers.dev/guides/upgrading-to-v3) if you are updating from v2

```sh
// via npm
npm i @material-ui/pickers

// via yarn
yarn add @material-ui/pickers
```

Now choose the library that pickers will use to work with date. We are providing interfaces for [moment](https://momentjs.com/), [luxon](https://moment.github.io/luxon/), [dayjs](https://github.com/iamkun/dayjs) and [date-fns v2](https://date-fns.org/). If you are not using moment in the project (or dont have it in the bundle already) we suggest using date-fns or luxon, because they are much lighter and will be correctly tree-shaked from the bundle. Note, that we are fully relying on [date-io](https://github.com/dmtrKovalenko/date-io) for supporting different libraries.

```sh
npm i date-fns@next @date-io/date-fns
// or
npm i moment @date-io/moment
// or
npm i luxon @date-io/luxon
// or
npm i dayjs @date-io/dayjs
```

Then teach pickers which library to use with `MuiPickerUtilsProvider`. This component takes a utils property, and makes it available down the React tree thanks to React context. It should preferably be used at the root of your component tree.

```jsx
import MomentUtils from "@date-io/moment";
import { MuiPickersUtilsProvider, DatePicker } from "material-ui-thai-datepickers";

import 'moment/locale/th';

function App() {
  return (
    <MuiPickersUtilsProvider utils={MomentUtils} locale={'th'}>
      <DatePicker
        label="with B.E. yearOffset"
        format="dd/MM/YYYY"
        pickerHeaderFormat="ddd D MMM"
        yearOffset={543}
      />
    </MuiPickersUtilsProvider>
  );
}

render(<App />, document.querySelector('#app'));
```

## Documentation

Check out the [documentation website](https://material-ui-pickers.dev/)

### Recently updated?

Changelog available [here](https://github.com/mui-org/material-ui-pickers/releases)

### Contributing

For information about how to contribute, see the [CONTRIBUTING](https://github.com/mui-org/material-ui-pickers/blob/master/CONTRIBUTING.md) file.

### LICENSE

The project is licensed under the terms of [MIT license](https://github.com/mui-org/material-ui-pickers/blob/master/LICENSE)

---
_Source: https://npm.io/package/material-ui-thai-datepickers · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
