UNPKG

@vonage/vivid-react

Version:

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

77 lines (67 loc) 1.36 kB
/* * DO NOT EDIT THIS FILE. IT IS GENERATED */ /* Code in this file were generated using following JSON: { "name": "vwc-card", "path": "./../node_modules/@vonage/vwc-card/vwc-card.d.ts", "properties": [ { "name": "heading", "type": "string | undefined", "bindable": false }, { "name": "subtitle", "type": "string | undefined", "bindable": false }, { "name": "icon", "type": "string | null", "bindable": false }, { "name": "text", "type": "string | undefined", "bindable": false }, { "name": "elevation", "type": "string", "bindable": false } ], "events": [ "click" ] } */ import PropTypes from 'prop-types' import wrapper from '@vonage/vivid-react-wrapper' import '@vonage/vwc-card' /** * @param {string | undefined} heading * @param {string | undefined} subtitle * @param {string | null} icon * @param {string | undefined} text * @param {string} elevation */ const VwcCard = wrapper('vwc-card', { events: [{"name":"click","propName":"onClick"}], attributes: [], properties: [] }); VwcCard.propTypes = { onClick: PropTypes.func, heading: PropTypes.string, subtitle: PropTypes.string, icon: PropTypes.string, text: PropTypes.string, elevation: PropTypes.string } VwcCard.defaultProps = { } VwcCard.displayName = 'VwcCard' export default VwcCard