@vonage/vivid-react
Version:
Vivid wrapped for easy React usage & IDE autocomplete support & typescript typings
103 lines (94 loc) • 2.24 kB
JavaScript
/*
* DO NOT EDIT THIS FILE. IT IS GENERATED
*/
/*
Code in this file were generated using following JSON:
{
"name": "vwc-icon",
"path": "./../node_modules/@vonage/vwc-icon/src/vwc-icon.ts",
"attributes": [
{
"name": "connotation",
"type": "IconConnotation | undefined"
},
{
"name": "type",
"type": "string | undefined"
},
{
"name": "inline",
"type": "boolean | undefined"
},
{
"name": "size",
"type": "IconSize | undefined"
},
{
"name": "aria-label",
"type": "string",
"default": "\"\""
}
],
"properties": [
{
"name": "connotation",
"attribute": "connotation",
"type": "IconConnotation | undefined",
"bindable": false
},
{
"name": "type",
"attribute": "type",
"type": "string | undefined",
"bindable": false
},
{
"name": "inline",
"attribute": "inline",
"type": "boolean | undefined",
"bindable": false
},
{
"name": "size",
"attribute": "size",
"type": "IconSize | undefined",
"bindable": false
},
{
"name": "ariaLabel",
"attribute": "aria-label",
"type": "string",
"default": "\"\"",
"bindable": false
}
],
"events": []
}
*/
import PropTypes from 'prop-types'
import wrapper from '@vonage/vivid-react-wrapper'
import '@vonage/vwc-icon'
/**
* @param {IconConnotation | undefined} connotation attribute: <VwcIcon connotation />
* @param {string | undefined} type attribute: <VwcIcon type />
* @param {boolean | undefined} inline attribute: <VwcIcon inline />
* @param {IconSize | undefined} size attribute: <VwcIcon size />
* @param {string} ariaLabel attribute: <VwcIcon aria-label />
*/
const VwcIcon = wrapper('vwc-icon', {
events: [],
attributes: [],
properties: []
});
VwcIcon.propTypes = {
connotation: PropTypes.any /* IconConnotation | undefined *//* attribute: connotation */,
type: PropTypes.string/* attribute: type */,
inline: PropTypes.any /* boolean | undefined *//* attribute: inline */,
size: PropTypes.any /* IconSize | undefined *//* attribute: size */,
ariaLabel: PropTypes.string/* default: "" *//* attribute: aria-label */
}
VwcIcon.defaultProps = {
ariaLabel: ""
}
VwcIcon.displayName = 'VwcIcon'
export default VwcIcon