--- title: Calendar desc: Calendar includes styles for different calendar libraries. source: https://raw.githubusercontent.com/saadeghi/daisyui/refs/heads/master/packages/daisyui/src/components/calendar.css layout: components classnames: component: - class: 'cally' desc: for Cally web component - class: 'pika-single' desc: for the input field that opens Pikaday calendar - class: 'react-day-picker' desc: for the DayPicker component --- > :INFO: > > You can also use the native HTML `` for a date picker. [Read more](/components/input/#date-input) ## daisyUI supports 3 calendar libraries daisyUI includes styles for 3 popular calendar libraries. Use any of them, based on your needs. You don't need to import the CSS files for these libraries. daisyUI will style them automatically. - [Cally web component](https://github.com/WickyNilliams/cally) - Works everywhere - [Pikaday](https://github.com/Pikaday/Pikaday) - Works everywhere - [React Day picker](https://github.com/gpbl/react-day-picker) - React only ## 1. Cally Calendar Cally is a web component calendar and it works everywhere. [Read the docs](https://github.com/WickyNilliams/cally) ### ~Cally calendar example #### Example using daisyUI styles ```html ``` ### ~Cally date picker example #### Example using daisyUI styles and daisyUI dropdown ```html
```
## 2. Pikaday Calendar Pikaday is a JS datepicker library and you can use it from CDN or as a JS dependency [Read the docs](https://github.com/Pikaday/Pikaday) ### Pikaday CDN Example ```html:html ``` ### Pikaday Svelte Example ```:Install npm i pikaday ``` ```svelte:file.svelte ``` ### Pikaday Vue Example ```:Install npm i pikaday ``` ```vue:file.vue ``` ### Pikaday React Example ```:Install npm i pikaday ``` ```jsx:file.tsx import { useEffect, useRef } from "react"; import Pikaday from "pikaday"; export default function App() { const myDatepicker = useRef(null); useEffect(() => { const picker = new Pikaday({ field: myDatepicker.current }); return () => picker.destroy(); }, []); return ( ); } ``` ## 3. React Day Picker calendar React Day Picker is a flexible date picker component for React. [Read the docs](https://github.com/gpbl/react-day-picker) ### React Day Picker Example ```:Install npm i react-day-picker ``` ```jsx:file.tsx import { useState } from "react"; import { DayPicker } from "react-day-picker"; export default function App() { const [date, setDate] = useState(); return ( <>
); } ```