UNPKG

vcc-ui

Version:

A React library for building user interfaces at Volvo Cars

20 lines 594 B
import React, { useRef } from 'react'; import { TabNavItem } from 'vcc-ui'; // passes ref and allow button attributes and custom props () => { const ref = useRef(null); return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(TabNavItem, { ref: ref, "aria-label": "label" }), /*#__PURE__*/React.createElement(TabNavItem, { ref: ref, "aria-label": "label", href: "href" }), /*#__PURE__*/React.createElement(TabNavItem, { isActive: true, isDropdown: true, onClick: e => { console.log(e); } }, "child")); };