--- components: ["DatePicker", "DatePickerInput", "DatePickerSkeleton"] --- Carbon uses the zero dependency [flatpickr](https://github.com/flatpickr/flatpickr) library for its underlying calendar implementation. Set `datePickerType` to `"single"` or `"range"` for the calendar functionality. Specify [flatpickr options](https://flatpickr.js.org/options/) through the `flatpickrProps` prop.
If using Rollup, specify inlineDynamicImports: true in your rollup.config.js.
## Single By default, the `flatpickr` option `static` is set to `true` so that the calendar is positioned inside the wrapper and next to the input element. This is required for the calendar position to work inside a [Modal](/components/Modal). Set `flatpickrProps.static` to `false` to opt out of this behavior. ## Range Set `datePickerType` to `"range"` for the range variant. ## DatePicker in a modal ## Simple By default, the "simple" date picker does not have a dropdown calendar. ## With helper text ## Hidden label ## Light variant ## Large size ## Small size ## Invalid state ## Warning state ## Disabled state ## Skeleton