@vonage/vivid-react
Version:
Vivid wrapped for easy React usage & IDE autocomplete support & typescript typings
116 lines (106 loc) • 2.35 kB
JavaScript
/*
* DO NOT EDIT THIS FILE. IT IS GENERATED
*/
/*
Code in this file were generated using following JSON:
{
"name": "vwc-tag",
"path": "./../node_modules/@vonage/vwc-tags/vwc-tag.d.ts",
"properties": [
{
"name": "styles",
"type": "CSSResult",
"bindable": false
},
{
"name": "ripple",
"type": "Promise<Ripple | null>",
"bindable": false
},
{
"name": "selectableElement",
"type": "HTMLElement",
"bindable": false
},
{
"name": "text",
"type": "string | undefined",
"bindable": false
},
{
"name": "selected",
"type": "boolean",
"bindable": false
},
{
"name": "connotation",
"type": "TagConnotation | undefined",
"bindable": false
},
{
"name": "shape",
"type": "TagShape | undefined",
"bindable": false
},
{
"name": "layout",
"type": "TagLayout | undefined",
"bindable": false
},
{
"name": "selectable",
"type": "boolean",
"bindable": false
},
{
"name": "removable",
"type": "boolean",
"bindable": false
},
{
"name": "removeEventOnly",
"type": "boolean",
"bindable": false
}
],
"events": []
}
*/
import PropTypes from 'prop-types'
import wrapper from '@vonage/vivid-react-wrapper'
import '@vonage/vwc-tags/vwc-tag'
/**
* @param {CSSResult} styles
* @param {Promise<Ripple | null>} ripple
* @param {HTMLElement} selectableElement
* @param {string | undefined} text
* @param {boolean} selected
* @param {TagConnotation | undefined} connotation
* @param {TagShape | undefined} shape
* @param {TagLayout | undefined} layout
* @param {boolean} selectable
* @param {boolean} removable
* @param {boolean} removeEventOnly
*/
const VwcTag = wrapper('vwc-tag', {
events: [],
attributes: [],
properties: []
});
VwcTag.propTypes = {
styles: PropTypes.any /* CSSResult */,
ripple: PropTypes.any /* Promise<Ripple | null> */,
selectableElement: PropTypes.any /* HTMLElement */,
text: PropTypes.string,
selected: PropTypes.bool,
connotation: PropTypes.any /* TagConnotation | undefined */,
shape: PropTypes.any /* TagShape | undefined */,
layout: PropTypes.any /* TagLayout | undefined */,
selectable: PropTypes.bool,
removable: PropTypes.bool,
removeEventOnly: PropTypes.bool
}
VwcTag.defaultProps = {
}
VwcTag.displayName = 'VwcTag'
export default VwcTag