Sha256: bcd1995216222f791db88e9748bc66be4392d331c1a2b82945cf8e820bd7231e

Contents?: true

Size: 1.07 KB

Versions: 206

Compression:

Stored size: 1.07 KB

Contents

import React from 'react'
import { Button, Filter, Flex, Select, TextInput } from '../../'

const FilterNoSort = (props) => {
  const options = [
    { value: 'USA' },
    { value: 'Canada' },
    { value: 'Brazil' },
    { value: 'Philippines' },
    { value: 'A Galaxy Far Far Away Like Really Far Away' },
  ]
  return (
    <Filter
        filters={{
          'Full Name': 'John Wick',
        }}
        results={546}
        sortValue={[{ name: 'popularity', dir: 'desc' }]}
        {...props}
    >
      <TextInput
          label="Full Name"
          placeholder="Enter name"
          {...props}
      />

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

export default FilterNoSort

Version data entries

206 entries across 206 versions & 1 rubygems

Version Path
playbook_ui-10.26.0.pre.alpha5 app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.jsx
playbook_ui-10.26.0.pre.rc1 app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.jsx
playbook_ui-10.26.0.pre.alpha.sticky1 app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.jsx
playbook_ui-10.26.0.pre.alpha.display1 app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.jsx
playbook_ui-10.26.0.pre.alpha3 app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.jsx
playbook_ui-10.25.1 app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.jsx
playbook_ui-10.26.0.pre.alpha1 app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.jsx
playbook_ui-10.25.0 app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.jsx
playbook_ui-10.25.0.pre.alpha3 app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.jsx
playbook_ui-10.25.0.pre.treeshaking1 app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.jsx
playbook_ui-10.24.0 app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.jsx
playbook_ui-10.24.0.pre.alpha1 app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.jsx
playbook_ui-10.23.0 app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.jsx
playbook_ui-10.23.0.pre.alpha2 app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.jsx
playbook_ui-10.23.0.pre.cachetest app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.jsx
playbook_ui-10.23.0.pre.alpha1 app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.jsx
playbook_ui-10.22.1 app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.jsx
playbook_ui-10.22.0 app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.jsx
playbook_ui-10.21.1.pre.alpha1 app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.jsx
playbook_ui-10.21.0.pre.alpha.lightbox.2 app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.jsx