@vonage/vivid-react
Version:
Vivid wrapped for easy React usage & IDE autocomplete support & typescript typings
156 lines (151 loc) • 3 kB
JavaScript
/*
* DO NOT EDIT THIS FILE. IT IS GENERATED
*/
/*
Code in this file were generated using following JSON:
{
"kind": "class",
"description": "",
"name": "OptionTag",
"cssProperties": [
{
"name": "--vvd-option-tag-cta-contrast",
"default": "var(--vvd-color-cta-800)"
},
{
"name": "--vvd-option-tag-accent-contrast",
"default": "var(--vvd-color-neutral-800)"
}
],
"members": [
{
"kind": "field",
"name": "shape",
"type": {
"text": "OptionTagShape | undefined"
}
},
{
"kind": "field",
"name": "connotation",
"type": {
"text": "OptionTagConnotation | undefined"
}
},
{
"kind": "field",
"name": "label",
"type": {
"text": "string | undefined"
}
},
{
"kind": "field",
"name": "removable",
"type": {
"text": "boolean"
},
"default": "false"
},
{
"kind": "field",
"name": "disabled",
"type": {
"text": "boolean"
},
"default": "false"
},
{
"kind": "field",
"name": "hasIconPlaceholder",
"type": {
"text": "boolean"
},
"default": "false"
},
{
"kind": "method",
"name": "_onClickRemove"
},
{
"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": "shape",
"type": {
"text": "OptionTagShape | undefined"
},
"fieldName": "shape"
},
{
"name": "label",
"type": {
"text": "string | undefined"
},
"fieldName": "label"
},
{
"name": "removable",
"type": {
"text": "boolean"
},
"default": "false",
"fieldName": "removable"
},
{
"name": "disabled",
"type": {
"text": "boolean"
},
"default": "false",
"fieldName": "disabled"
}
],
"mixins": [
{
"name": "Localized",
"module": "/src/shared/patterns"
}
],
"superclass": {
"name": "VividElement",
"module": "/src/shared/foundation/vivid-element/vivid-element"
}
}
*/
import wrapper from '@vonage/vivid-react-wrapper'
import { registerOptionTag } from '@vonage/vivid'
registerOptionTag('vvd3')
const VwcOptionTag = wrapper(`vvd3-option-tag`, {
events: [],
attributes: [],
properties: ['shape', 'connotation', 'label', 'removable', 'disabled', 'hasIconPlaceholder', 'VIVID_VERSION', 'componentName']
})
VwcOptionTag.displayName = 'VwcOptionTag'
export default VwcOptionTag