@vonage/vivid-react
Version:
Vivid wrapped for easy React usage & IDE autocomplete support & typescript typings
136 lines (131 loc) • 2.96 kB
JavaScript
/*
* DO NOT EDIT THIS FILE. IT IS GENERATED
*/
/*
Code in this file were generated using following JSON:
{
"kind": "class",
"description": "",
"name": "Divider",
"cssProperties": [
{
"name": "--vvd-divider-accent-soft",
"default": "var(--vvd-color-neutral-100)"
},
{
"name": "--vvd-divider-accent-dim",
"default": "var(--vvd-color-neutral-200)"
}
],
"members": [
{
"kind": "field",
"name": "role",
"type": {
"text": "DividerRole"
},
"description": "The role of the element. This property will be removed",
"privacy": "public"
},
{
"kind": "field",
"name": "orientation",
"type": {
"text": "Orientation"
},
"description": "The orientation of the divider.",
"privacy": "public"
},
{
"kind": "field",
"name": "appearance",
"type": {
"text": "DividerAppearance | undefined"
},
"description": "The appearance of the divider.",
"privacy": "public"
},
{
"kind": "field",
"name": "_vividAriaBehaviour",
"default": "'host'",
"type": {
"text": "'host'"
},
"inheritedFrom": {
"name": "HostSemantics",
"module": "src/shared/aria/host-semantics.ts"
}
},
{
"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": "orientation",
"type": {
"text": "Orientation"
},
"description": "The orientation of the divider.",
"fieldName": "orientation"
},
{
"name": "appearance",
"type": {
"text": "DividerAppearance | undefined"
},
"description": "The appearance of the divider.",
"fieldName": "appearance"
}
],
"mixins": [
{
"name": "HostSemantics",
"module": "/src/shared/aria/host-semantics"
}
],
"superclass": {
"name": "VividElement",
"module": "/src/shared/foundation/vivid-element/vivid-element"
},
"vividComponent": {
"public": true,
"name": "divider"
}
}
*/
import wrapper from '@vonage/vivid-react-wrapper'
import { registerDivider } from '@vonage/vivid'
registerDivider('vvd3')
const VwcDivider = wrapper(`vvd3-divider`, {
events: [],
attributes: [],
properties: ['role', 'orientation', 'appearance', '_vividAriaBehaviour', 'VIVID_VERSION', 'componentName']
})
VwcDivider.displayName = 'VwcDivider'
export default VwcDivider