import { useState } from 'react';import { Box, DatePicker } from '@arctic-kit/snow';function Demo() {const [value, setValue] = useState<Date | undefined>(new Date());return (<Box sx={{ display: 'flex' }}><DatePicker value={value} onChange={setValue} /></Box>);}
Props | Type | Default |
---|---|---|
disabled | boolean | undefined | --- |
label | string | undefined | --- |
maxDate | Date | undefined | --- |
minDate | Date | undefined | --- |
onChange | ((date?: Date | undefined) => void) | undefined | --- |
placeholder | string | undefined | --- |
readOnly | boolean | undefined | --- |
size | "small" | "medium" | "large" | --- |
value | Date | undefined | --- |