UNPKG

grommet

Version:

focus on the essential experience

24 lines (23 loc) 764 B
import React from 'react'; import { Box, Calendar } from 'grommet'; // When the first day of the month is Sunday, and the request of firstDayOfWeek // is Monday, we are verifing we are not missing a week, issue 3253. export var SundayFirstDayCalendar = function SundayFirstDayCalendar() { return ( /*#__PURE__*/ // Uncomment <Grommet> lines when using outside of storybook // <Grommet theme={...}> React.createElement(Box, { align: "center", pad: "large" }, /*#__PURE__*/React.createElement(Calendar, { firstDayOfWeek: 1, date: new Date(2019, 8, 2).toISOString() })) // </Grommet> ); }; SundayFirstDayCalendar.storyName = '1st on Sunday'; export default { title: 'Visualizations/Calendar/1st on Sunday' };