JSPM

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

Stack component that distributes layouts for real system.

Package Exports

  • @real-system/stack
  • @real-system/stack/lib/index.esm.js
  • @real-system/stack/lib/index.js

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/stack) 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/stack

Stack component that distributes layouts for real system.

npm version

Installation

# install peer dependencies

# npm
$ npm install react react-dom @real-system/elements-primitive @real-system/styled-library @real-system/utils-library
# yarn
$ yarn add react react-dom @real-system/elements-primitive @real-system/styled-library @real-system/utils-library

# install stack

# npm
$ npm install @real-system/stack
# yarn
$ yarn add @real-system/stack

Code Example

import { Stack, StackItem, StackSeparator } from '@real-system/stack';
import { Separator } from '@real-system/separator'; // <-- `yarn add @real-system/separator`

const MyComponent = () => {
  return (
    <>
      Vertical Stack Approaches
      <Stack separator={<StackSeparator />}>
        <Stack.Item>Vertical<Stack.Item>
        <StackItem>Stack<StackItem>
      </Stack>
      Will align-center that stack items
      <Stack.Vertical>...</Stack.Vertical>

      Horizontal Stack Approaches
      <Stack inline>Horizontal Stack</Stack>
      <Stack direction="row">...</Stack>
      <Stack.Horizontal>...</Stack.Horizontal>

      Custom Separator
      Will align-center that stack items
      <Stack separator={<Separator borderColor="red-200" />}>Custom Separator</Stack>
    </>
  )
}