Sha256: 4a95a9879f4e3f8c1734fef877aa12bb1cb4be5a6aed9da829950670aef6a8df

Contents?: true

Size: 1.2 KB

Versions: 10

Compression:

Stored size: 1.2 KB

Contents

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

const FilterSingle = (props) => {
  const options = [
    { value: 'USA' },
    { value: 'Canada' },
    { value: 'Brazil' },
    { value: 'Philippines' },
    { value: 'A Galaxy Far Far Away Like Really Far Away' },
  ]
  return (
    <Filter
        {...props}
        filters={{
          'Full Name': 'John Wick',
        }}
        results={546}
        sortOptions={{
          popularity: 'Popularity',
          // eslint-disable-next-line
          manager_title: 'Manager\'s Title',
          // eslint-disable-next-line
          manager_name: 'Manager\'s Name',
        }}
        sortValue={[{ name: 'popularity', dir: 'desc' }]}
    >
      <TextInput
          label="Full Name"
          placeholder="Enter name"
      />

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

export default FilterSingle

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
playbook_ui-7.11.1 app/pb_kits/playbook/pb_filter/docs/_filter_single.jsx
playbook_ui-7.11.0 app/pb_kits/playbook/pb_filter/docs/_filter_single.jsx
playbook_ui-7.11.0.pre.alpha1 app/pb_kits/playbook/pb_filter/docs/_filter_single.jsx
playbook_ui-7.10.0 app/pb_kits/playbook/pb_filter/docs/_filter_single.jsx
playbook_ui-7.9.0 app/pb_kits/playbook/pb_filter/docs/_filter_single.jsx
playbook_ui-7.8.4 app/pb_kits/playbook/pb_filter/docs/_filter_single.jsx
playbook_ui-7.8.3 app/pb_kits/playbook/pb_filter/docs/_filter_single.jsx
playbook_ui-7.8.2 app/pb_kits/playbook/pb_filter/docs/_filter_single.jsx
playbook_ui-7.8.1 app/pb_kits/playbook/pb_filter/docs/_filter_single.jsx
playbook_ui-7.8.0 app/pb_kits/playbook/pb_filter/docs/_filter_single.jsx