vcc-ui
Version:
A React library for building user interfaces at Volvo Cars
42 lines (40 loc) • 852 B
JavaScript
import React, { useRef } from 'react';
import { Text } from 'vcc-ui';
// <Text<'h3'> aria-label="label" variant="amundsen">
// child
// </Text>;
/*#__PURE__*/React.createElement(Text, {
as: "h1",
variant: "bates"
});
/*#__PURE__*/React.createElement(Text, {
extend: [_ref => {
let {
theme
} = _ref;
return {
color: theme.color.background.primary
};
}, {
display: 'none'
}, [_ref2 => {
let {
theme
} = _ref2;
return {
color: theme.color.background.primary
};
}, {
display: 'none'
}]]
});
() => {
const h1Ref = useRef(null);
const genericRef = useRef(null);
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Text, {
as: "h1",
ref: h1Ref
}), /*#__PURE__*/React.createElement(Text, {
ref: genericRef
}));
};