0.0.4 • Published 8 months ago

@licuido-ui/ui_date-picker v0.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
8 months ago

DatePicker

The Date Picker component lets the user select a date.

Author

Link

Story Book Link DatePicker

PlayGround

Try it have a fun codeBox

Installation

npm i  @licuido-ui/ui_date-picker

Import component

import { DatePicker } from '@licuido-ui/ui_date-picker';

Usage

<DatePicker dateFormat={'DD-MM-YYYY'} />

Image

alt text

Sample Code

<DatePicker
  onChangeFun={() => false}
  views={['year', 'month', 'day']}
  inputStyleRoot={{}}
  dateFormat={'DD MMM YY'}
  disablePast={false}
  disableFuture={false}
  iconPosition={'left'}
  hoverInputColor={'#B2ADEB'}
  focusedInputColor={'#665CD7'}
  inputRootStyle={{}}
  defaultBorderColor={'#E9E9E9'}
  calenderBorderColor={'#665CD7'}
  calendarBackgroundColor={''}
  pickersLayoutStyle={}
  MobilePickersLayoutStyle={}
/>

Props

NameDescriptionDefaultControl
variant'filled' or 'outlined' or 'outlined'outlined''outlined'
onChangeFun()=>{}() ={}-
views[year ,month ,date][year ,month ,date][year ,month ,date]
inputStyleRootobject{ }inputStyleRoot : {}
dateFormatDD MMM YYstring"DD MMM YY"DD MMM YY
disablePastbooleanfalseFalse or True
disableFuturebooleanfalseFalse or True
OpenPickerIconReactNodeReactNodeReactNode
iconPositionleftright or left or right"left"left
hoverInputColorstring"#B2ADEB"linear-gradient(rgba(255,0,0,0), rgba(255,0,0,1))
focusedInputColorstring"#665CD7"linear-gradient(rgba(255,0,0,0), rgba(255,0,0,1))
inputRootStyleobjectSxProps<{}>{ }inputRootStyle : {}
defaultBorderColorstring"#E9E9E9"linear-gradient(rgba(255,0,0,0), rgba(255,0,0,1))
calenderBorderColorstring"#665CD7"linear-gradient(rgba(255,0,0,0), rgba(255,0,0,1))
calendarBackgroundColorstring"#665CD7"linear-gradient(rgba(255,0,0,0), rgba(255,0,0,1))
classNamestring-Set string
sx{}Set object string
labelThe label content.string-Set string
pickersLayoutStyleobjectSxProps:{}objectSxProps-
mobilePickersLayoutStyleobjectSxProps:{}objectSxProps-