UNPKG

@vonage/vivid-react

Version:

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

106 lines (97 loc) 2.14 kB
/* * DO NOT EDIT THIS FILE. IT IS GENERATED */ /* Code in this file were generated using following JSON: { "name": "vwc-tooltip", "path": "./../node_modules/@vonage/vwc-tooltip/src/vwc-tooltip.ts", "attributes": [ { "name": "text", "type": "string", "default": "\"\"" }, { "name": "corner", "type": "Placement | undefined" }, { "name": "open", "type": "boolean", "default": "false" }, { "name": "anchor", "type": "string", "default": "\"\"" } ], "properties": [ { "name": "styles", "type": "CSSResult", "default": "\"style\"", "bindable": false }, { "name": "text", "attribute": "text", "type": "string", "default": "\"\"", "bindable": false }, { "name": "corner", "attribute": "corner", "type": "Placement | undefined", "bindable": false }, { "name": "open", "attribute": "open", "type": "boolean", "default": "false", "bindable": false }, { "name": "anchor", "attribute": "anchor", "type": "string", "default": "\"\"", "bindable": false } ], "events": [] } */ import PropTypes from 'prop-types' import wrapper from '@vonage/vivid-react-wrapper' import '@vonage/vwc-tooltip' /** * @param {CSSResult} styles * @param {string} text attribute: <VwcTooltip text /> * @param {Placement | undefined} corner attribute: <VwcTooltip corner /> * @param {boolean} open attribute: <VwcTooltip open /> * @param {string} anchor attribute: <VwcTooltip anchor /> */ const VwcTooltip = wrapper('vwc-tooltip', { events: [], attributes: [], properties: [] }); VwcTooltip.propTypes = { styles: PropTypes.any /* CSSResult *//* default: "style" */, text: PropTypes.string/* default: "" *//* attribute: text */, corner: PropTypes.any /* Placement | undefined *//* attribute: corner */, open: PropTypes.bool/* default: false *//* attribute: open */, anchor: PropTypes.string/* default: "" *//* attribute: anchor */ } VwcTooltip.defaultProps = { styles: "style", text: "", open: false, anchor: "" } VwcTooltip.displayName = 'VwcTooltip' export default VwcTooltip