@vonage/vivid-react
Version:
Vivid wrapped for easy React usage & IDE autocomplete support & typescript typings
139 lines (129 loc) • 3.09 kB
JavaScript
/*
* DO NOT EDIT THIS FILE. IT IS GENERATED
*/
/*
Code in this file were generated using following JSON:
{
"name": "vwc-snackbar",
"path": "./../node_modules/@vonage/vwc-snackbar/vwc-snackbar.d.ts",
"properties": [
{
"name": "legacy",
"type": "boolean",
"bindable": false
},
{
"name": "position",
"type": "\"TOP-START\" | \"TOP-CENTER\" | \"TOP-END\" | \"BOTTOM-START\" | \"BOTTOM-CENTER\" | \"BOTTOM-END\"",
"bindable": false
},
{
"name": "connotation",
"type": "SnackbarConnotation | undefined",
"bindable": false
},
{
"name": "icon",
"type": "string | undefined",
"bindable": false
},
{
"name": "header",
"type": "string | undefined",
"bindable": false
},
{
"name": "message",
"type": "string",
"bindable": false
},
{
"name": "dismissible",
"type": "boolean | undefined",
"bindable": false
},
{
"name": "open",
"type": "boolean",
"bindable": false
},
{
"name": "timeoutMs",
"type": "number",
"bindable": false
},
{
"name": "closeOnEscape",
"type": "boolean",
"bindable": false
},
{
"name": "labelText",
"type": "string",
"bindable": false
},
{
"name": "stacked",
"type": "boolean",
"bindable": false
},
{
"name": "leading",
"type": "boolean",
"bindable": false
}
],
"events": [
"opening",
"opened",
"closing",
"closed"
]
}
*/
import PropTypes from 'prop-types'
import wrapper from '@vonage/vivid-react-wrapper'
import '@vonage/vwc-snackbar'
/**
* @param {boolean} legacy
* @param {"TOP-START" | "TOP-CENTER" | "TOP-END" | "BOTTOM-START" | "BOTTOM-CENTER" | "BOTTOM-END"} position
* @param {SnackbarConnotation | undefined} connotation
* @param {string | undefined} icon
* @param {string | undefined} header
* @param {string} message
* @param {boolean | undefined} dismissible
* @param {boolean} open
* @param {number} timeoutMs
* @param {boolean} closeOnEscape
* @param {string} labelText
* @param {boolean} stacked
* @param {boolean} leading
*/
const VwcSnackbar = wrapper('vwc-snackbar', {
events: [{"name":"closed","propName":"onClosed"},{"name":"closing","propName":"onClosing"},{"name":"opened","propName":"onOpened"},{"name":"opening","propName":"onOpening"}],
attributes: [],
properties: []
});
VwcSnackbar.propTypes = {
onOpening: PropTypes.func,
onOpened: PropTypes.func,
onClosing: PropTypes.func,
onClosed: PropTypes.func,
legacy: PropTypes.bool,
position: PropTypes.oneOf(["TOP-START","TOP-CENTER","TOP-END","BOTTOM-START","BOTTOM-CENTER","BOTTOM-END"]),
connotation: PropTypes.any /* SnackbarConnotation | undefined */,
icon: PropTypes.string,
header: PropTypes.string,
message: PropTypes.string,
dismissible: PropTypes.any /* boolean | undefined */,
open: PropTypes.bool,
timeoutMs: PropTypes.number,
closeOnEscape: PropTypes.bool,
labelText: PropTypes.string,
stacked: PropTypes.bool,
leading: PropTypes.bool
}
VwcSnackbar.defaultProps = {
}
VwcSnackbar.displayName = 'VwcSnackbar'
export default VwcSnackbar