UNPKG

@vonage/vivid-react

Version:

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

145 lines (140 loc) 3.13 kB
/* * DO NOT EDIT THIS FILE. IT IS GENERATED */ /* Code in this file were generated using following JSON: { "kind": "class", "description": "", "name": "Breadcrumb", "slots": [ { "description": "Default slot.", "name": "" } ], "members": [ { "kind": "method", "name": "setItemSeparator", "privacy": "private", "parameters": [ { "name": "item", "type": { "text": "HTMLElement" } }, { "name": "isLastNode", "type": { "text": "boolean" } } ] }, { "kind": "method", "name": "findChildWithHref", "privacy": "private", "return": { "type": { "text": "HTMLElement | null" } }, "parameters": [ { "name": "node", "type": { "text": "HTMLElement" } } ], "description": "Finds href on childnodes in the light DOM or shadow DOM.\nWe look in the shadow DOM because we insert an anchor when breadcrumb-item has an href." }, { "kind": "method", "name": "setAriaCurrent", "privacy": "private", "parameters": [ { "name": "item", "type": { "text": "HTMLElement" } }, { "name": "isLastNode", "type": { "text": "boolean" } } ], "description": "Sets ARIA Current for the current node\nIf child node with an anchor tag and with href is found then set aria-current to correct value for the child node,\notherwise apply aria-current to the host element, with an href" }, { "kind": "field", "name": "_vividAriaBehaviour", "default": "'delegate'", "type": { "text": "'delegate'" }, "inheritedFrom": { "name": "DelegatesAria", "module": "src/shared/aria/delegates-aria.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" } } ], "mixins": [ { "name": "DelegatesAria", "module": "/src/shared/aria/delegates-aria" } ], "superclass": { "name": "VividElement", "module": "/src/shared/foundation/vivid-element/vivid-element" }, "vividComponent": { "public": true, "name": "breadcrumb" } } */ import wrapper from '@vonage/vivid-react-wrapper' import { registerBreadcrumb } from '@vonage/vivid' registerBreadcrumb('vvd3') const VwcBreadcrumb = wrapper(`vvd3-breadcrumb`, { events: [], attributes: [], properties: ['_vividAriaBehaviour', 'VIVID_VERSION', 'componentName'] }) VwcBreadcrumb.displayName = 'VwcBreadcrumb' export default VwcBreadcrumb