@real-system/elements-primitive
v0.0.29
Published
Element primitives with built-in style props for real system.
Downloads
41
Maintainers
Readme
Installation
# install peer dependencies
# npm
$ npm install react react-dom @real-system/styled-library
# yarn
$ yarn add react react-dom @real-system/styled-library
# install elements-primitive
# npm
$ npm install @real-system/elements-primitive
# yarn
$ yarn add @real-system/elements-primitive
Code Example
import { real, RealElementPrimitiveProps } from '@real-system/elements-primitive';
const H1 = ({ children, ...restProps }: RealElementPrimitiveProps) => {
return (
<real.h1
fontSize={4}
fontWeight={3}
lineHeight={4}
margin={0}
{...restProps}>
{children}
</real.h1>
)
}