@vonage/vivid-react
Version:
Vivid wrapped for easy React usage & IDE autocomplete support & typescript typings
118 lines (113 loc) • 2.5 kB
JavaScript
/*
* DO NOT EDIT THIS FILE. IT IS GENERATED
*/
/*
Code in this file were generated using following JSON:
{
"kind": "class",
"description": "",
"name": "Elevation",
"slots": [
{
"description": "Default slot.",
"name": ""
}
],
"members": [
{
"kind": "field",
"name": "dp",
"type": {
"text": "0 | 2 | 4 | 8 | 12 | 16 | 24 | undefined"
},
"description": "Indicates the elevation's dp.",
"privacy": "public"
},
{
"kind": "field",
"name": "noShadow",
"type": {
"text": "boolean | undefined"
},
"description": "toggles the elevation's shadow.",
"privacy": "public"
},
{
"kind": "field",
"name": "notRelative",
"type": {
"text": "boolean | undefined"
}
},
{
"kind": "field",
"name": "VIVID_VERSION",
"static": true,
"default": "__PACKAGE_VERSION__",
"description": "The current version of the Vivid library, which is useful for debugging.\nIt can be accessed from any Vivid element via `<el>.constructor.VIVID_VERSION`.",
"type": {
"text": "string"
},
"inheritedFrom": {
"name": "VividElement",
"module": "src/shared/foundation/vivid-element/vivid-element.ts"
}
},
{
"kind": "field",
"name": "componentName",
"type": {
"text": "string"
},
"static": true,
"description": "Core component name, without prefix",
"inheritedFrom": {
"name": "VividElement",
"module": "src/shared/foundation/vivid-element/vivid-element.ts"
}
}
],
"attributes": [
{
"name": "dp",
"type": {
"text": "0 | 2 | 4 | 8 | 12 | 16 | 24 | undefined"
},
"description": "Indicates the elevation's dp.",
"fieldName": "dp"
},
{
"name": "no-shadow",
"type": {
"text": "boolean | undefined"
},
"description": "toggles the elevation's shadow.",
"fieldName": "noShadow"
},
{
"name": "not-relative",
"type": {
"text": "boolean | undefined"
},
"fieldName": "notRelative"
}
],
"superclass": {
"name": "VividElement",
"module": "/src/shared/foundation/vivid-element/vivid-element"
},
"vividComponent": {
"name": "elevation"
}
}
*/
import wrapper from '@vonage/vivid-react-wrapper'
import { registerElevation } from '@vonage/vivid'
registerElevation('vvd3')
const VwcElevation = wrapper(`vvd3-elevation`, {
events: [],
attributes: [],
properties: ['dp', 'noShadow', 'notRelative', 'VIVID_VERSION', 'componentName']
})
VwcElevation.displayName = 'VwcElevation'
export default VwcElevation