litepicker-react
TypeScript icon, indicating that this package has built-in type declarations

0.0.16 • Public • Published

litepicker-react

This component is react wrapper for litepicker.

Attributes

  • options - litepicker options
  • ...inputProps[] - input props

How to Use

Step 1.

npm i litepicker
npm i litepicker-react

Step 2.

import { useMemo } from "react";
import LitePicker, { LitePickerOptions } from "litepicker-react";

function App() {
  const options: LitePickerOptions = useMemo(
    () => ({
      singleMode: false,
      startDate: new Date(),
      endDate: new Date()
    }),
    []
  );

  return <LitePicker options={options} />;
}

export default App;

Package Sidebar

Install

npm i litepicker-react

Weekly Downloads

2

Version

0.0.16

License

MIT

Unpacked Size

21.7 kB

Total Files

8

Last publish

Collaborators

  • alexanderpo