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-12.12.0.pre.alpha.PLAY697sandpacklayoutstyles413 app/pb_kits/playbook/pb_flex/docs/_flex_gap.jsx
playbook_ui-12.12.0 app/pb_kits/playbook/pb_flex/docs/_flex_gap.jsx
playbook_ui-12.11.0 app/pb_kits/playbook/pb_flex/docs/_flex_gap.jsx
playbook_ui-12.10.0.pre.alpha.PLAY705phonenumberreturn372 app/pb_kits/playbook/pb_flex/docs/_flex_gap.jsx
playbook_ui-12.10.0.pre.alpha.PLAY677richtexteditorts370 app/pb_kits/playbook/pb_flex/docs/_flex_gap.jsx
playbook_ui-12.10.0 app/pb_kits/playbook/pb_flex/docs/_flex_gap.jsx
playbook_ui-12.9.1.pre.alpha.play664tiptapinvestigation353 app/pb_kits/playbook/pb_flex/docs/_flex_gap.jsx
playbook_ui-12.9.1.pre.alpha.PLAY689bugtxtinputlabel346 app/pb_kits/playbook/pb_flex/docs/_flex_gap.jsx
playbook_ui-12.9.1.pre.alpha.menucleanup345 app/pb_kits/playbook/pb_flex/docs/_flex_gap.jsx
playbook_ui-12.9.1.pre.alpha.menucleanup342 app/pb_kits/playbook/pb_flex/docs/_flex_gap.jsx
playbook_ui-12.9.1 app/pb_kits/playbook/pb_flex/docs/_flex_gap.jsx
playbook_ui-12.9.0 app/pb_kits/playbook/pb_flex/docs/_flex_gap.jsx
playbook_ui-12.8.0.pre.alpha.PLAY625phonenumberdark301 app/pb_kits/playbook/pb_flex/docs/_flex_gap.jsx
playbook_ui-12.8.0.pre.alpha.PLAY625phonenumberdark300 app/pb_kits/playbook/pb_flex/docs/_flex_gap.jsx
playbook_ui-12.8.0.pre.alpha.PLAY649mapkitstyles299 app/pb_kits/playbook/pb_flex/docs/_flex_gap.jsx
playbook_ui-12.8.0.pre.alpha.PLAY645typescriptprogresstep298 app/pb_kits/playbook/pb_flex/docs/_flex_gap.jsx
playbook_ui-12.8.0.pre.alpha.PLAY645typescriptprogresstep297 app/pb_kits/playbook/pb_flex/docs/_flex_gap.jsx
playbook_ui-12.8.0.pre.alpha.rubyandnpmalpharelease296 app/pb_kits/playbook/pb_flex/docs/_flex_gap.jsx
playbook_ui-12.8.0.pre.alpha.rubyandnpmalpharelease295 app/pb_kits/playbook/pb_flex/docs/_flex_gap.jsx
playbook_ui-12.8.0.pre.alpha.rubyandnpmalpharelease294 app/pb_kits/playbook/pb_flex/docs/_flex_gap.jsx