3.0.3 • Published 28 days ago

@tabula/ui-date-picker v3.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
28 days ago

@tabula/ui-date-picker

Allows to pick a date, time or date and time together.

Installation

Use the package manager pnpm to install @tabula/ui-date-picker.

pnpm add @tabula/ui-date-picker

You can use npm or yarn too.

Usage

We provide three types of picker:

  • date - only date picker is shown;
  • time - only time picker is shown;
  • datetime - both date and time picker are shown.

Import component and render it with required type:

import { FC, MouseEventHandler, PropsWithChildren } from 'react';

import { UiDatePicker } from '@tabula/ui-date-picker';

const Picker = () => {
  const [selected, setSelected] = useState<Date | null>(null);

  return <UiDatePicker onSelect={setSelected} selected={selected} type="date" />;
};

License

This project is ISC licensed.

3.0.3

28 days ago

3.0.3-beta.0

1 month ago

3.0.2

1 month ago

3.0.1

1 month ago

3.0.0

2 months ago

2.0.0

2 months ago

1.0.3

3 months ago

1.0.2

3 months ago

1.0.1

4 months ago

1.0.0

4 months ago

0.1.1

5 months ago

0.1.0

5 months ago