@vonage/vivid-react
Version:
Vivid wrapped for easy React usage & IDE autocomplete support & typescript typings
71 lines (61 loc) • 1.54 kB
JavaScript
/*
* DO NOT EDIT THIS FILE. IT IS GENERATED
*/
/*
Code in this file were generated using following JSON:
{
"name": "vwc-calendar",
"path": "./../node_modules/@vonage/vwc-calendar/vwc-calendar.d.ts",
"properties": [
{
"name": "datetime",
"type": "Date | undefined",
"bindable": false
},
{
"name": "locales",
"type": "string | string[] | undefined",
"bindable": true
},
{
"name": "hour12",
"type": "boolean | undefined"
},
{
"name": "getEventContext",
"type": "(e: Event) => CalendarEventContext | null",
"bindable": true
},
{
"name": "stickyHeader",
"type": "boolean | undefined",
"bindable": false
}
],
"events": []
}
*/
import PropTypes from 'prop-types'
import wrapper from '@vonage/vivid-react-wrapper'
import '@vonage/vwc-calendar'
/**
* @param {Date | undefined} datetime
* @param {string | string[] | undefined} locales
* @param {(e: Event) => CalendarEventContext | null} getEventContext
* @param {boolean | undefined} stickyHeader
*/
const VwcCalendar = wrapper('vwc-calendar', {
events: [],
attributes: [],
properties: ["locales","getEventContext"]
});
VwcCalendar.propTypes = {
datetime: PropTypes.any /* Date | undefined */,
locales: PropTypes.any /* string | string[] | undefined */,
getEventContext: PropTypes.any /* (e: Event) => CalendarEventContext | null */,
stickyHeader: PropTypes.any /* boolean | undefined */
}
VwcCalendar.defaultProps = {
}
VwcCalendar.displayName = 'VwcCalendar'
export default VwcCalendar