Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
material-ui-next-pickers
Advanced tools
Readme
This repository act as a sample of creating a datepicker or timepicker in Material UI Next or it can be imported as a datepicker or timepicker component.
npm install material-ui-next-pickers --save
name: string
label?: string
value: Date
variant?: 'standard' | 'outlined' | 'filled'
onChange: (value:Date, event?:React.MouseEvent<HTMLElement>) => void
anchorOrigin?: {
vertical: 'top' | 'center' | 'bottom'
horizontal: 'left' | 'center' | 'right'
}
transformOrigin?: {
vertical: 'top' | 'center' | 'bottom'
horizontal: 'left' | 'center' | 'right'
}
disabled?: boolean
error?: string
dateDisabled?: (date:Date) => boolean
min?: Date
max?: Date
dateFormat?: string | ((date:Date) => string)
fullWidth?: boolean
dialog?: boolean
okToConfirm?: boolean
endIcon?: Node
className?: string
FormControlProps?: FormControlProps
InputLabelProps?: InputLabelProps
InputProps?: InputProps
FormHelperTextProps?: FormHelperTextProps
CalendarProps?: CalendarProps
action: (actions:any) => void // only resize event
value: Date
onChange: (value:Date, event?:React.MouseEvent<HTMLElement>) => void
closeCalendar: () => void
dateDisabled?: (date:Date) => boolean
min?: Date
max?: Date
okToConfirm?: boolean
classes?: {
root?: string
selectedDay?: string
selectedDayText?: string
selectedYear?: string
selectedYearText?: string
}
name: string
label?: string
value: Date
variant?: 'standard' | 'outlined' | 'filled'
onChange: (value:Date, event?:React.MouseEvent<HTMLElement> | React.TouchEvent<HTMLElement>) => void
selectableMinutesInterval?: number
anchorOrigin?: {
vertical: 'top' | 'center' | 'bottom'
horizontal: 'left' | 'center' | 'right'
}
transformOrigin?: {
vertical: 'top' | 'center' | 'bottom'
horizontal: 'left' | 'center' | 'right'
}
disabled?: boolean
error?: string
fullWidth?: boolean
dialog?: boolean
okToConfirm?: boolean
endIcon?: Node
className?: string
FormControlProps?: FormControlProps
InputLabelProps?: InputLabelProps
InputProps?: InputProps
FormHelperTextProps?: FormHelperTextProps
ClockProps?: ClockProps
action: (actions:any) => void // only resize event
value: Date
onChange: (value:Date, event?:React.MouseEvent<HTMLElement> | React.TouchEvent<HTMLElement>) => void
closeClock: () => void
selectableMinutesInterval?: number
okToConfirm?: boolean
classes?: {
root?: string
digitalContainer?: string
clockBackground?: string
hand?: string
textSelected?: string
minuteDotSelected?: string
}
import {DateFormatInput, TimeFormatInput} from 'material-ui-next-pickers'
class YourComponent extends React.Component<{}, YourComponentState> {
onChangeDate = (date:Date) => {
console.log('Date: ', date)
this.setState({date})
}
onChangeTime = (time:Date) => {
console.log('Time: ', time)
this.setState({time})
}
render() {
const {date, time} = this.state
return (
<div>
<DateFormatInput name='date-input' value={date} onChange={this.onChangeDate}/>
<TimeFormatInput name='time-input' value={time} onChange={this.onChangeTime}/>
</div>
)
}
}
interface YourComponentState {
date: Date
time: Date
}
FAQs
Datepicker and timepicker for material-ui next
The npm package material-ui-next-pickers receives a total of 322 weekly downloads. As such, material-ui-next-pickers popularity was classified as not popular.
We found that material-ui-next-pickers demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.