0.0.6 • Published 8 months ago
@licuido-ui/ui_date-range-picker v0.0.6
DateRangePicker
The Date Range Picker let the user select a range of dates.
Author
- @author Henry Dyson J henry@crayond.co
Link
StoryBook link to DateRangePicker
PlayGround
Installation
npm i @licuido-ui/ui_date-range-pickerImport component
import { DateRangePicker } from '@licuido-ui/ui_date-range-picker';Usage
<DateRangePicker dateFormat={'DD-MM-YYYY'} />Image

Sample Code
<DateRangePicker
inputContainerStyle={{}}
inputBorderColor={'#E9E9E9'}
inputBorderHoverColor={'#B2ADEB'}
inputActiveColor={'#665CD7'}
inputFontsize={14}
inputValueColor={'#3B3B3B'}
startLabel={'Check-in'}
endLabel={'Check-out'}
inputLabelSize={14}
inputLabelColor={'#656363'}
inputStyleRoot={{}}
selectedRangeBgColor={'#B2ADEB'}
selectedDateColor={'#000'}
selectedHoverBgColor={'#EFEEFB'}
selectedHoverTextColor={'#665CD7'}
cancelButtonLabel={'cancel'}
submitButtonLabel={'Submit'}
buttonFontSize={14}
buttonLabelColor={'#665CD7'}
bottomButtonStyle={{}}
addMoreButtons={[]}
dateFormat={'DD MMM YY'}
startViews={['year', 'month', 'day']}
endViews={['year', 'day']}
openTo={'day'}
maxDateEnd={undefined}
minDateEnd={undefined}
minDateStart={undefined}
maxDateStart={undefined}
calenderPopoverStyle={{}}
endCalendarStyle={{}}
startCalendarStyle={{}}
startCalendarMaxHeight={400}
startCalendarMinHeight={undefined}
endCalendarMaxHeight={undefined}
endCalendarMinHeight={undefined}
startCalendarHeight={250}
endCalendarHeight={250}
rightInputCalendarIcon={''}
handleEndDateChangeFun={() => false}
handleStartDateChangeFun={() => false}
onMonthChangeStartFun={() => false}
onMonthChangeEndFun={() => false}
onYearChangeStartFun={() => false}
onYearChangeEndFun={() => false}
handleSubmitCalendarFun={() => false}
/>Props
| Name | Description | Default | Control |
|---|---|---|---|
| startVariant | 'filled' or 'outlined' or 'outlined | 'outlined' | 'outlined' |
| endVariant | 'filled' or 'outlined' or 'outlined | 'outlined' | 'outlined' |
| rangeId | string | string | string |
| inputContainerStyle | SxProps<{}> | { } | inputContainerStyle : {} |
| inputBorderColor | string | "#E9E9E9" | linear-gradient(rgba(255,0,0,0), rgba(255,0,0,1)) |
| inputBorderHoverColor | string | "#B2ADEB" | linear-gradient(rgba(255,0,0,0), rgba(255,0,0,1)) |
| inputActiveColor | string | "#665CD7" | linear-gradient(rgba(255,0,0,0), rgba(255,0,0,1)) |
| inputFontsize | number | 14 | |
| inputValueColor | string | "#3B3B3B" | linear-gradient(rgba(255,0,0,0), rgba(255,0,0,1)) |
| startLabel | string | "Check-in" | Check-in |
| endLabel | string | "Check-out" | Check-out |
| inputLabelSize | number | 14 | |
| inputLabelColor | string | "#656363" | linear-gradient(rgba(255,0,0,0), rgba(255,0,0,1)) |
| dateFormat | "YYY MM DD"string | "DD MMM YY" | DD MMM YY |
| inputStyleRoot | SxProps<{}> | { } | inputStyleRoot : {} |
| startViews | ["year", "month", "day"] | ["year", "month", "day"] | ["year", "month"day"] |
| endViews | ["year","day"] | 'year', 'day' | ["year","day"] |
| selectedDateColor | string | "#000" | linear-gradient(rgba(255,0,0,0), rgba(255,0,0,1)) |
| selectedRangeBgColor | string | "#B2ADEB" | linear-gradient(rgba(255,0,0,0), rgba(255,0,0,1)) |
| selectedHoverBgColor | string | "#EFEEFB" | linear-gradient(rgba(255,0,0,0), rgba(255,0,0,1)) |
| selectedHoverTextColor | string | "#665CD7" | linear-gradient(rgba(255,0,0,0), rgba(255,0,0,1)) |
| cancelButtonLabel | string | "cancel" | cancel |
| submitButtonLabel | string | "Submit" | Submit |
| bottomButtonStyle | SxProps<{}> | { } | bottomButtonStyle : {} |
| buttonFontSize | number | 14 | |
| buttonLabelColor | string | "#665CD7" | linear-gradient(rgba(255,0,0,0), rgba(255,0,0,1)) |
| addMoreButtons | {label:name,handleFunction:()=>{} | [] | [] |
| startCalendarMaxHeight | number | - | Set number |
| startCalendarMinHeight | number | - | Set number |
| endCalendarMaxHeight | number | - | Set number |
| endCalendarMinHeight | number | - | Set number |
| startCalendarHeight | number | - | Set number |
| endCalendarHeight | number | - | Set number |
| maxDateEnd | YYYY-MM-DDDayjs | - | Set object |
| minDateEnd | YYYY-MM-DDDayjs | - | Set object |
| minDateStart | YYYY-MM-DDDayjs | - | Set object |
| maxDateStart | YYYY-MM-DDDayjs | - | Set object |
| calenderPopoverStyle | SxProps<{}> | { } | calenderPopoverStyle : {} |
| endCalendarStyle | SxProps<{}> | { } | endCalendarStyle : {} |
| startCalendarStyle | SxProps<{}> | { } | startCalendarStyle : {} |
| leftInputCalendarIcon | ReactNode | ) | "" |
| rightInputCalendarIcon | ReactNode | "" | "" |
| handleEndDateChangeFun | ()=>{} | () => false | - |
| handleStartDateChangeFun | ()=>{} | () => false | - |
| onMonthChangeStartFun | ()=>{} | () => false | - |
| onMonthChangeEndFun | ()=>{} | () => false | - |
| onYearChangeStartFun | ()=>{} | () => false | - |
| onYearChangeEndFun | ()=>{} | () => false | - |
| handleSubmitCalendarFun | ()=>{} | () => false | - |
| className | string | - | Set string |
| sx | SxProps<Theme> | {} | Set object |
| openTo | day or month or year | day | string |
0.0.6
8 months ago