UNPKG

vcc-ui

Version:

A React library for building user interfaces at Volvo Cars

72 lines (64 loc) 1.42 kB
import React from 'react'; import { Click } from 'vcc-ui'; // const CustomLinkComponent: React.FC<{ to: string }> = () => { // return <div />; // }; /*#__PURE__*/React.createElement(Click, { href: "" }); /*#__PURE__*/React.createElement(Click, { href: "", onClick: e => { console.log(e); } }); /*#__PURE__*/React.createElement(Click, { href: "" }); // <Click<typeof CustomLinkComponent> to="./" />; // <Click href="href" type="submit" form="button only attribute"> // <div /> // </Click>; // const ref = createRef<HTMLDivElement>(); // <Click ref={ref} type="button" />; // const ref2 = createRef<HTMLButtonElement>(); // <Click<'button'> ref={ref2} type="button" />; const Component = () => /*#__PURE__*/React.createElement(Click, null); Component.propTypes = {}; // Allows multiple extend types /*#__PURE__*/React.createElement(Click, { extend: { display: 'none' } }); /*#__PURE__*/React.createElement(Click, { extend: _ref => { let { theme } = _ref; return { color: theme.color.background.primary }; } }); /*#__PURE__*/React.createElement(Click, { extend: [_ref2 => { let { theme } = _ref2; return { color: theme.color.background.primary }; }, { display: 'none' }, [_ref3 => { let { theme } = _ref3; return { color: theme.color.background.primary }; }, { display: 'none' }]] });