# Calendar Popover This component shows a Popover with a calendar inside. Beyond combining Popover and PostSchedule, this component connects with the state-tree, so in this way timezone data related to the site configuration is propagated automatically. ## Usage ```jsx import { Button } from '@automattic/components'; import CalendarPopover from 'calypso/blocks/calendar-popover'; const toggle = () => this.setState( { show: ! this.state.show } ); const buttonRef = React.createRef(); function render() { return (
); } ``` ## Props The following props can be passed to the CalendarPopover component: ### `children`
TypeElement
RequiredNo
#### Connect Props ### `gmtOffset`
TypeNumber
The site's UTC offset. ### `timezoneValue`
TypeString
The site's timezone value, in the format of 'America/Araguaina (see ). #### Props propagated to the `` - `autoPosition` - `closeOnEsc` - `ignoreContext` - `isVisible` - `position` - `showDelay` - `onClose` - `onShow` #### Props propagated to the `` - `events` - `selectedDay` - `siteId` - `onDateChange` - `onMonthChange`