@vonage/vivid-react
Version:
Vivid wrapped for easy React usage & IDE autocomplete support & typescript typings
69 lines (59 loc) • 1.53 kB
JavaScript
/*
* DO NOT EDIT THIS FILE. IT IS GENERATED
*/
/*
Code in this file were generated using following JSON:
{
"name": "vwc-list-expansion-panel",
"path": "./../node_modules/@vonage/vwc-list/src/vwc-list-expansion-panel.ts",
"description": "This component support expand-collapse list",
"properties": [
{
"name": "styles",
"type": "CSSResult",
"default": "\"style\""
},
{
"name": "headerListItemIcon",
"type": "typeof VWCIcon | undefined",
"bindable": false
},
{
"name": "headerNodes",
"type": "HTMLElement[] | null | undefined"
},
{
"name": "open",
"type": "boolean",
"bindable": false
}
],
"events": [
"closed",
"opened"
]
}
*/
import PropTypes from 'prop-types'
import wrapper from '@vonage/vivid-react-wrapper'
import '@vonage/vwc-list'
import '@vonage/vwc-list/vwc-list-expansion-panel'
/** This component support expand-collapse list
* @param {typeof VWCIcon | undefined} headerListItemIcon
* @param {boolean} open
*/
const VwcListExpansionPanel = wrapper('vwc-list-expansion-panel', {
events: [{"name":"opened","propName":"onOpened"},{"name":"closed","propName":"onClosed"}],
attributes: [],
properties: []
});
VwcListExpansionPanel.propTypes = {
onClosed: PropTypes.func,
onOpened: PropTypes.func,
headerListItemIcon: PropTypes.any /* typeof VWCIcon | undefined */,
open: PropTypes.bool
}
VwcListExpansionPanel.defaultProps = {
}
VwcListExpansionPanel.displayName = 'VwcListExpansionPanel'
export default VwcListExpansionPanel