Package Exports
- @real-system/elements-primitive
- @real-system/elements-primitive/lib/index.js
- @real-system/elements-primitive/lib/index.mjs
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@real-system/elements-primitive) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@real-system/elements-primitive
Element primitives with built-in style props for real system.
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-primitiveCode 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>
)
}