UNPKG

vcc-ui

Version:

A React library for building user interfaces at Volvo Cars

23 lines 746 B
import React, { useRef } from 'react'; import { TabNav } 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(TabNav, { ref: ref, showBackButtonOn: ['s', 'm'] }), /*#__PURE__*/React.createElement(TabNav, { ref: ref, "aria-label": "label", href: "href" }), /*#__PURE__*/React.createElement(TabNav, null, "child"), /*#__PURE__*/React.createElement(TabNav, { stickyChildrenLeft: /*#__PURE__*/React.createElement("div", null), backButton: { text: 'text', href: 'href', clickHandler: e => { console.log(e); } } }, "child")); };