Date Picker
This is helper text
Overrides helper text
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import React from "react"
import { DatePicker } from "@creation-ui/react"
export const Example = () => (
<DatePicker
variant={"outlined"}
size={"md"}
error={""}
clearable
label={"DatePicker"}
placeholder={"Placeholder"}
helperText={"This is helper text"}
/>
)
Component API
Prop | Default | Description |
value | — | Date | null | undefined Date selected in calendar |
onChange | — | (date: Date | null | undefined) => void Callback function when date is selected |
Rest of the props is the same as in Input props and controls the Input
element.