@vonage/vivid-react
Version:
Vivid wrapped for easy React usage & IDE autocomplete support & typescript typings
56 lines (46 loc) • 978 B
JavaScript
/*
* DO NOT EDIT THIS FILE. IT IS GENERATED
*/
/*
Code in this file were generated using following JSON:
{
"name": "vwc-pagination",
"path": "./../node_modules/@vonage/vwc-pagination/vwc-pagination.d.ts",
"properties": [
{
"name": "total",
"type": "number",
"bindable": false
},
{
"name": "selectedIndex",
"type": "number",
"bindable": false
}
],
"events": [
"change"
]
}
*/
import PropTypes from 'prop-types'
import wrapper from '@vonage/vivid-react-wrapper'
import '@vonage/vwc-pagination'
/**
* @param {number} total
* @param {number} selectedIndex
*/
const VwcPagination = wrapper('vwc-pagination', {
events: [{"name":"change","propName":"onChange"}],
attributes: [],
properties: []
});
VwcPagination.propTypes = {
onChange: PropTypes.func,
total: PropTypes.number,
selectedIndex: PropTypes.number
}
VwcPagination.defaultProps = {
}
VwcPagination.displayName = 'VwcPagination'
export default VwcPagination