0.6.11 • Published 5 days ago

@igloo-ui/datepicker v0.6.11

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
5 days ago

Datepicker

Date pickers let users choose dates from a visual calendar that’s consistently applied wherever dates need to be selected.

Installation

To install @igloo-ui/datepicker in your project, you will need to run the following command using npm:

npm install @igloo-ui/datepicker

If you prefer Yarn, use the following command instead:

yarn add @igloo-ui/datepicker

Usage

Then to use the component in your code just import it!

import Datepicker from '@igloo-ui/datepicker';

const [showDatepicker, setShowDatepicker] = useState(false);
const [date, setDate] = useState('2022-09-30T00:00:00Z');

useEffect(() => {
  setShowDatepicker(false);
}, [date]);

const formatedDate = new Date('2022-09-30T00:00:00Z').toLocaleDateString();

<Datepicker
  ariaLabel="Event date"
  placeholder="Select date"
  selectedDay={date}
  value={formatedDate}
  isOpen={showDatepicker}
  onClose={() => setShowDatepicker(false)}
  onChange={(date) => setDate(date.utc)}
  onFocus={() => setShowDatepicker(!showDatepicker)}
/>;
0.6.11

5 days ago

0.6.10

12 days ago

0.6.9

27 days ago

0.6.8

1 month ago

0.6.7

2 months ago

0.6.6

2 months ago

0.6.5

2 months ago

0.6.4

3 months ago

0.6.3

3 months ago

0.6.2

3 months ago

0.6.1

3 months ago

0.6.0

4 months ago

0.5.6

4 months ago

0.5.5

4 months ago

0.5.4

5 months ago

0.5.3

5 months ago

0.3.0

9 months ago

0.2.0

9 months ago

0.5.0

8 months ago

0.3.2

8 months ago

0.1.4

10 months ago

0.4.0

8 months ago

0.3.1

8 months ago

0.5.2

6 months ago

0.5.1

7 months ago

0.1.5

9 months ago

0.1.2

12 months ago

0.1.3

11 months ago

0.1.0

1 year ago

0.1.1

1 year ago

0.0.8

1 year ago

0.0.5

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago

0.0.0

2 years ago