Sha256: 8693bb43cfd91d546422cd8bc720ec9250841f2c387175d00e9f65dc6127d206

Contents?: true

Size: 1.13 KB

Versions: 948

Compression:

Stored size: 1.13 KB

Contents

import React from 'react'
import { Button, Filter, Flex, Select, TextInput } from 'playbook-ui'

const FilterOnly = (props) => {
  const options = [
    { value: 'USA' },
    { value: 'Canada' },
    { value: 'Brazil' },
    { value: 'Philippines' },
    { value: 'A galaxy far far away...' },
  ]
  return (
    <Filter
        filters={{ 'Full Name': 'John Wick' }}
        minWidth="360px"
        {...props}
    >
    {({ closePopover }) => (
      <form>

        <TextInput
            label="Full Name"
            placeholder="Enter name"
            {...props}
        />

        <Select
            blankSelection="Select One..."
            label="Territory"
            name="location"
            options={options}
            {...props}
        />
        <Flex
            spacing="between"
            {...props}
        >
          <Button
              onClick={closePopover}
              text="Apply"
              {...props}
          />
          <Button
              text="Clear"
              variant="secondary"
              {...props}
          />
        </Flex>
      </form>
    )}

    </Filter>
  )
}

export default FilterOnly

Version data entries

948 entries across 948 versions & 2 rubygems

Version Path
playbook_ui-14.11.0.pre.rc.17 app/pb_kits/playbook/pb_filter/docs/_filter_only.jsx
playbook_ui-14.11.0 app/pb_kits/playbook/pb_filter/docs/_filter_only.jsx
playbook_ui_docs-14.11.0.pre.rc.16 app/pb_kits/playbook/pb_filter/docs/_filter_only.jsx
playbook_ui-14.11.0.pre.rc.16 app/pb_kits/playbook/pb_filter/docs/_filter_only.jsx
playbook_ui_docs-14.10.0.pre.alpha.play16825301 app/pb_kits/playbook/pb_filter/docs/_filter_only.jsx
playbook_ui-14.10.0.pre.alpha.play16825301 app/pb_kits/playbook/pb_filter/docs/_filter_only.jsx
playbook_ui_docs-14.11.0.pre.rc.15 app/pb_kits/playbook/pb_filter/docs/_filter_only.jsx
playbook_ui-14.11.0.pre.rc.15 app/pb_kits/playbook/pb_filter/docs/_filter_only.jsx
playbook_ui_docs-14.11.0.pre.rc.14 app/pb_kits/playbook/pb_filter/docs/_filter_only.jsx
playbook_ui-14.11.0.pre.rc.14 app/pb_kits/playbook/pb_filter/docs/_filter_only.jsx
playbook_ui_docs-14.11.0.pre.rc.13 app/pb_kits/playbook/pb_filter/docs/_filter_only.jsx
playbook_ui-14.11.0.pre.rc.13 app/pb_kits/playbook/pb_filter/docs/_filter_only.jsx
playbook_ui_docs-14.11.0.pre.rc.12 app/pb_kits/playbook/pb_filter/docs/_filter_only.jsx
playbook_ui-14.11.0.pre.rc.12 app/pb_kits/playbook/pb_filter/docs/_filter_only.jsx
playbook_ui_docs-14.10.0.pre.alpha.PLAY1774timelinelabelstepspacing5274 app/pb_kits/playbook/pb_filter/docs/_filter_only.jsx
playbook_ui-14.10.0.pre.alpha.PLAY1774timelinelabelstepspacing5274 app/pb_kits/playbook/pb_filter/docs/_filter_only.jsx
playbook_ui_docs-14.10.0.pre.alpha.play1465attempt25272 app/pb_kits/playbook/pb_filter/docs/_filter_only.jsx
playbook_ui-14.10.0.pre.alpha.play1465attempt25272 app/pb_kits/playbook/pb_filter/docs/_filter_only.jsx
playbook_ui_docs-14.10.0.pre.alpha.play16825244 app/pb_kits/playbook/pb_filter/docs/_filter_only.jsx
playbook_ui-14.10.0.pre.alpha.play16825244 app/pb_kits/playbook/pb_filter/docs/_filter_only.jsx