JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q63982F
  • License MIT

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

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.

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