UNPKG

lucid-ui

Version:

A UI component library from AppNexus.

17 lines (16 loc) 633 B
import React from 'react'; import createClass from 'create-react-class'; import CalendarMonth from '../CalendarMonth'; export default createClass({ UNSAFE_componentWillMount() { this.fromDate = new Date(); this.fromDate.setDate(1); }, render() { return (React.createElement("section", { style: { maxWidth: 400 } }, "Cursor for day selectMode:", React.createElement(CalendarMonth, { cursor: new Date() }), "Cursor for range selectMode:", React.createElement(CalendarMonth, { selectMode: 'to', from: this.fromDate, cursor: new Date() }))); }, });