Sha256: e01b41f9d2b4833f0b568631c75e3fdf8ce2c58cf00cc16a0aa4de0f2f7158e3

Contents?: true

Size: 1.37 KB

Versions: 289

Compression:

Stored size: 1.37 KB

Contents

import React from 'react'
import { Flex, FlexItem } from  '../../'

const FlexGap = (props) => {
  const count = () => {
    const array = []
    for (let i = 0; i < 40; i++) {
      array.push(i)
    }
    return array
  }

  return (
    <>
      <div className="flex-doc-example">
        <Flex
            gap="xs"
            wrap
            {...props}
        >
          {count().map((v, key) => (
            <FlexItem key={key}>
              {v}
            </FlexItem>
            ))}
        </Flex>
      </div>

      <br />

      <div className="flex-doc-example">
        <Flex
            columnGap="lg"
            {...props}
        >
          <FlexItem>
            {'1'}
          </FlexItem>
          <FlexItem>
            {'2'}
          </FlexItem>
          <FlexItem>
            {'3'}
          </FlexItem>
          <FlexItem>
            {'4'}
          </FlexItem>
        </Flex>
      </div>
      <br />
      <div className="flex-doc-example">
        <Flex
            orientation="column"
            rowGap="xl"
            {...props}
        >
          <FlexItem>
            {'1'}
          </FlexItem>
          <FlexItem>
            {'2'}
          </FlexItem>
          <FlexItem>
            {'3'}
          </FlexItem>
          <FlexItem>
            {'4'}
          </FlexItem>
        </Flex>
      </div>
    </>
  )
}

export default FlexGap

Version data entries

289 entries across 289 versions & 1 rubygems

Version Path
playbook_ui-10.7.0 app/pb_kits/playbook/pb_flex/docs/_flex_gap.jsx
playbook_ui-10.6.2.pre.alpha.dep app/pb_kits/playbook/pb_flex/docs/_flex_gap.jsx
playbook_ui-10.6.1.pre.alpha1 app/pb_kits/playbook/pb_flex/docs/_flex_gap.jsx
playbook_ui-10.6.0 app/pb_kits/playbook/pb_flex/docs/_flex_gap.jsx
playbook_ui-10.5.0 app/pb_kits/playbook/pb_flex/docs/_flex_gap.jsx
playbook_ui-10.4.0 app/pb_kits/playbook/pb_flex/docs/_flex_gap.jsx
playbook_ui-10.3.0 app/pb_kits/playbook/pb_flex/docs/_flex_gap.jsx
playbook_ui-10.2.1.alpha.sisensefix app/pb_kits/playbook/pb_flex/docs/_flex_gap.jsx
playbook_ui-10.2.1 app/pb_kits/playbook/pb_flex/docs/_flex_gap.jsx
playbook_ui-10.2.0 app/pb_kits/playbook/pb_flex/docs/_flex_gap.jsx
playbook_ui-10.1.0 app/pb_kits/playbook/pb_flex/docs/_flex_gap.jsx
playbook_ui-10.0.3.pre.alpha.walkthrough2 app/pb_kits/playbook/pb_flex/docs/_flex_gap.jsx
playbook_ui-10.0.3.pre.alpha.walkthrough app/pb_kits/playbook/pb_flex/docs/_flex_gap.jsx
playbook_ui-10.0.1.alpha.railscusticon app/pb_kits/playbook/pb_flex/docs/_flex_gap.jsx
playbook_ui-10.0.2.pre.alpha.pre.iconfix app/pb_kits/playbook/pb_flex/docs/_flex_gap.jsx
playbook_ui-10.0.1.alpha.rtflexfix app/pb_kits/playbook/pb_flex/docs/_flex_gap.jsx
playbook_ui-10.0.0.pre.alphafonts app/pb_kits/playbook/pb_flex/docs/_flex_gap.jsx
playbook_ui-10.0.1 app/pb_kits/playbook/pb_flex/docs/_flex_gap.jsx
playbook_ui-10.0.0 app/pb_kits/playbook/pb_flex/docs/_flex_gap.jsx
playbook_ui-9.19.0.pre.alpha.pre.fonts2 app/pb_kits/playbook/pb_flex/docs/_flex_gap.jsx