3.0.4 • Published 8 months ago

@licuido-ui/ui_time-picker v3.0.4

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

Time Picker

The time picker component is used to select or schedule a specific time or a range of times.

Author

Link

Story Book Link to TimePicker

PlayGround

Try it have a fun codeBox

Installation

npm i @licuido-ui/ui_time-picker

Import component

import { TimePicker } from '@licuido-ui/ui_time-picker';

Usage

<Switch label={'My Label'} isLabel={true} />

Image

alt text

Sample Code

<TimePicker
        value={value}
        onChange={(val: Dayjs | null) => setValue(val)}
        onAccept={(val) => console.log(val, 'iui')}
        headerData={[
          { id: '1', label: 'HH' },
          { id: '2', label: 'MM' },
          { id: '2', label: 'Period' },
        ]}
      />

Props

NameDescriptionDefaultControl
idstringstring
classNamestring""
sxThe system prop that allows defining system overrides as well as additional CSS styles.SxProps<Theme>{ }sx : {}
valueDaysjsDaysjsDaysjs
headerData[][][]
onChange()=>{}()=>{}()=>{}
onAccept()=>{}()=>{}()=>{}
listRootStyleSxPropsSxPropsSxProps
paperRootStyleSxPropsSxPropsSxProps {}
menuItemRootStyleSxPropsSxPropsSxProps{}
digitalClockStyleSxPropsSxPropsSxProps{}
pickersLayoutRootStyleSxPropsSxPropsSxProps{}
dialogActionsRootStyleSxPropsSxPropsSxProps{}
submitButtonStyleSxPropsSxPropsSxProps{}
inputRootstyleSxPropsSxPropsSxProps{}
headerTitleStyleSxPropsSxPropsSxProps{}
cardWidthnumbernumbernumbernumber
headerBgColorstringstringstring
requiredbooleanbooleanboolean
fullWidthbooleanbooleanboolean
errorbooleanbooleanboolean

| disabled | boolean | boolean | boolean |

| placeholder | string | string | string |

| inputRootStyle | SxProp | SxProp | SxProp | | clockMarginTopToInput | number | number | number | | isErrorRequired | boolean | boolean | boolean | | errorMessage | string | string | string | | errorStyle | sxProp | sxProp | sxProp |