Sha256: 49ac2abfab5104387880e2a668d4f9cec5c071b413831cecfb28e9e87a997433

Contents?: true

Size: 1.24 KB

Versions: 948

Compression:

Stored size: 1.24 KB

Contents

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

const FilterNoSort = (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"
        results={546}
        sortValue={[{ name: 'popularity', dir: 'desc' }]}
        {...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 FilterNoSort

Version data entries

948 entries across 948 versions & 2 rubygems

Version Path
playbook_ui_docs-14.11.1.pre.alpha.play1724darkmodeauditmap5437 app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.jsx
playbook_ui-14.11.1.pre.alpha.play1724darkmodeauditmap5437 app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.jsx
playbook_ui_docs-14.11.1.pre.alpha.PBNTR719listdraggablesimple5432 app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.jsx
playbook_ui-14.11.1.pre.alpha.PBNTR719listdraggablesimple5432 app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.jsx
playbook_ui_docs-14.11.1.pre.alpha.PBNTR768stickyrightcolumn5431 app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.jsx
playbook_ui-14.11.1.pre.alpha.PBNTR768stickyrightcolumn5431 app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.jsx
playbook_ui_docs-14.12.0.pre.rc.6 app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.jsx
playbook_ui-14.12.0.pre.rc.6 app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.jsx
playbook_ui_docs-14.11.1.pre.alpha.PBNTR718simiplifieddraggablereact5415 app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.jsx
playbook_ui-14.11.1.pre.alpha.PBNTR718simiplifieddraggablereact5415 app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.jsx
playbook_ui_docs-14.11.1.pre.alpha.play1724darkmodeauditmap5413 app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.jsx
playbook_ui-14.11.1.pre.alpha.play1724darkmodeauditmap5413 app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.jsx
playbook_ui_docs-14.12.0.pre.rc.5 app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.jsx
playbook_ui-14.12.0.pre.rc.5 app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.jsx
playbook_ui_docs-14.11.1.pre.alpha.play1724darkmodeauditmap5409 app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.jsx
playbook_ui-14.11.1.pre.alpha.play1724darkmodeauditmap5409 app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.jsx
playbook_ui_docs-14.11.1.pre.alpha.PBNTR718simiplifieddraggablereact5400 app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.jsx
playbook_ui-14.11.1.pre.alpha.PBNTR718simiplifieddraggablereact5400 app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.jsx
playbook_ui_docs-14.11.1.pre.alpha.PBNTR718simiplifieddraggablereact5392 app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.jsx
playbook_ui-14.11.1.pre.alpha.PBNTR718simiplifieddraggablereact5392 app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.jsx