@vonage/vivid-react
Version:
Vivid wrapped for easy React usage & IDE autocomplete support & typescript typings
112 lines (102 loc) • 2.25 kB
JavaScript
/*
* DO NOT EDIT THIS FILE. IT IS GENERATED
*/
/*
Code in this file were generated using following JSON:
{
"name": "vwc-icon-button",
"path": "./../node_modules/@vonage/vwc-icon-button/vwc-icon-button.d.ts",
"properties": [
{
"name": "layout",
"type": "IconButtonLayout | undefined",
"bindable": false
},
{
"name": "connotation",
"type": "IconButtonConnotation | undefined",
"bindable": false
},
{
"name": "shape",
"type": "IconButtonShape | undefined",
"bindable": false
},
{
"name": "dense",
"type": "boolean",
"bindable": false
},
{
"name": "enlarged",
"type": "boolean",
"bindable": false
},
{
"name": "styles",
"type": "CSSResult[]"
},
{
"name": "disabled",
"type": "boolean",
"bindable": false
},
{
"name": "icon",
"type": "string",
"bindable": false
},
{
"name": "ariaLabel",
"type": "string | undefined",
"bindable": false
},
{
"name": "buttonElement",
"type": "HTMLElement"
},
{
"name": "ripple",
"type": "Promise<Ripple | null>"
}
],
"events": [
"click"
]
}
*/
import PropTypes from 'prop-types'
import wrapper from '@vonage/vivid-react-wrapper'
import '@vonage/vwc-icon-button'
/**
* @param {IconButtonLayout | undefined} layout
* @param {IconButtonConnotation | undefined} connotation
* @param {IconButtonShape | undefined} shape
* @param {boolean} dense
* @param {boolean} enlarged
* @param {boolean} disabled
* @param {string} icon
* @param {string | undefined} ariaLabel
* @param {string} value
*/
const VwcIconButton = wrapper('vwc-icon-button', {
events: [{"name":"click","propName":"onClick"}],
attributes: [],
properties: []
});
VwcIconButton.propTypes = {
onClick: PropTypes.func,
layout: PropTypes.any /* IconButtonLayout | undefined */,
connotation: PropTypes.any /* IconButtonConnotation | undefined */,
shape: PropTypes.any /* IconButtonShape | undefined */,
dense: PropTypes.bool,
enlarged: PropTypes.bool,
disabled: PropTypes.bool,
icon: PropTypes.string,
ariaLabel: PropTypes.string,
value: PropTypes.string
}
VwcIconButton.defaultProps = {
}
VwcIconButton.displayName = 'VwcIconButton'
export default VwcIconButton