@real-system/text
Text primitive for real system.
Usage
# install peer dependencies
# npm
$ npm install react react-dom @real-system/box @real-system/styling @real-system/theme @real-system/utils
# yarn
$ yarn add react react-dom @real-system/box @real-system/styling @real-system/theme @real-system/utils
# install text
# npm
$ npm install @real-system/text
# yarn
$ yarn add @real-system/text
Code Example
import { Text, TextProps, safelySpreadTextProps } from '@real-system/text';
const H1 = (props: TextProps) => (
<Text as="h1" fontSize={10} {...safelySpreadTextProps(props)}>
The quick brown fox jumped over the lazy dog.
</Text>
);