
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@trendmicro/react-datepicker
Advanced tools
React DatePicker
Demo: https://trendmicro-frontend.github.io/react-datepicker
npm install --save react moment @trendmicro/react-datepicker
@trendmicro/react-datepicker
and its styles in your application as follows:import DatePicker, { DateInput, TimeInput } from '@trendmicro/react-datepicker';
// Be sure to include styles at some point, probably during your bootstraping
import '@trendmicro/react-datepicker/dist/react-datepicker.css';
Initialize state in your React component:
state = {
date: moment().format('YYYY-MM-DD')
};
<DatePicker
date={this.state.date}
onSelect={date => {
this.setState(state => ({ date: date }));
}}
/>
<DatePicker
defaultDate={this.state.date}
onSelect={date => {
// Optional
}}
/>
Initialize state in your React component:
state = {
// 2017-08-01
value: moment().format('YYYY-MM-DD')
};
<DateInput
value={this.state.value}
onChange={value => {
this.setState(state => ({ value: value }));
}}
/>
<DateInput
defaultValue={this.state.value}
onChange={value => {
// Optional
}}
/>
Initialize state in your React component:
state = {
// 08:00:00
value: moment().format('hh:mm:ss')
};
<TimeInput
value={this.state.value}
onChange={value => {
this.setState(state => ({ value: value }));
}}
/>
<TimeInput
defaultValue={this.state.value}
onChange={value => {
// Optional
}}
/>
Dropdown.MenuWrapper
Name | Type | Default | Description |
---|---|---|---|
locale | string | 'en' | |
date | object or string | null | |
defaultDate | object or string | null | |
minDate | object or string | null | The minimum selectable date. When set to null, there is no minimum. |
maxDate | object or string | null | The maximum selectable date. When set to null, there is no maximum. |
onSelect | function(date) | Called when a date is selected. |
Name | Type | Default | Description |
---|---|---|---|
value | object or string | null | |
defaultValue | object or string | null | |
minDate | object or string | null | The minimum date. When set to null, there is no minimum. |
maxDate | object or string | null | The maximum date. When set to null, there is no maximum. |
onChange | function(value) | Called when the value changes. |
Name | Type | Default | Description |
---|---|---|---|
value | string | '00:00:00' | |
defaultValue | string | '00:00:00' | |
onChange | function(value) | Called when the value changes. |
MIT
FAQs
React DatePicker Component
The npm package @trendmicro/react-datepicker receives a total of 646 weekly downloads. As such, @trendmicro/react-datepicker popularity was classified as not popular.
We found that @trendmicro/react-datepicker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers 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.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.