@real-system/elements-primitive

0.0.29 • Public • Published

@real-system/elements-primitive

Element primitives with built-in style props for real system.

npm version

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>
  )
}

Package Sidebar

Install

npm i @real-system/elements-primitive

Weekly Downloads

1

Version

0.0.29

License

MIT

Unpacked Size

83.7 kB

Total Files

10

Last publish

Collaborators

  • bigwoof91