UNPKG

@vonage/vivid-react

Version:

Vivid wrapped for easy React usage & IDE autocomplete support & typescript typings

107 lines (97 loc) 1.93 kB
/* * DO NOT EDIT THIS FILE. IT IS GENERATED */ /* Code in this file were generated using following JSON: { "name": "vwc-chip", "path": "./../node_modules/@vonage/vwc-chips/vwc-chip.d.ts", "properties": [ { "name": "styles", "type": "CSSResult" }, { "name": "label", "type": "string", "bindable": false }, { "name": "type", "type": "ChipType | undefined", "bindable": false }, { "name": "selected", "type": "boolean", "bindable": false }, { "name": "icon", "type": "string", "bindable": false }, { "name": "iconClass", "type": "string", "bindable": false }, { "name": "removable", "type": "boolean", "bindable": false }, { "name": "removeIcon", "type": "string", "bindable": false }, { "name": "removeIconClass", "type": "string", "bindable": false }, { "name": "removeIconFocusable", "type": "boolean", "bindable": false } ], "events": [] } */ import PropTypes from 'prop-types' import wrapper from '@vonage/vivid-react-wrapper' import '@vonage/vwc-chips' import '@vonage/vwc-chips/vwc-chip' /** * @param {string} label * @param {ChipType | undefined} type * @param {boolean} selected * @param {string} icon * @param {string} iconClass * @param {boolean} removable * @param {string} removeIcon * @param {string} removeIconClass * @param {boolean} removeIconFocusable */ const VwcChip = wrapper('vwc-chip', { events: [], attributes: [], properties: [] }); VwcChip.propTypes = { label: PropTypes.string, type: PropTypes.any /* ChipType | undefined */, selected: PropTypes.bool, icon: PropTypes.string, iconClass: PropTypes.string, removable: PropTypes.bool, removeIcon: PropTypes.string, removeIconClass: PropTypes.string, removeIconFocusable: PropTypes.bool } VwcChip.defaultProps = { } VwcChip.displayName = 'VwcChip' export default VwcChip