Sha256: d7a78e4d4f932d56712c002f5df2eacd905b8b8e9c01ba2f2281436d5495bace

Contents?: true

Size: 996 Bytes

Versions: 206

Compression:

Stored size: 996 Bytes

Contents

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

const FilterOnly = (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' }}
        {...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 FilterOnly

Version data entries

206 entries across 206 versions & 1 rubygems

Version Path
playbook_ui-11.7.0.pre.alpha.table1 app/pb_kits/playbook/pb_filter/docs/_filter_only.jsx
playbook_ui-11.7.0 app/pb_kits/playbook/pb_filter/docs/_filter_only.jsx
playbook_ui-11.6.0.pre.alpha.fontawesome app/pb_kits/playbook/pb_filter/docs/_filter_only.jsx
playbook_ui-11.5.0.pre.alpha.fontawesome app/pb_kits/playbook/pb_filter/docs/_filter_only.jsx
playbook_ui-11.7.0.pre.alpha.pre.guagechart1 app/pb_kits/playbook/pb_filter/docs/_filter_only.jsx
playbook_ui-11.6.0 app/pb_kits/playbook/pb_filter/docs/_filter_only.jsx
playbook_ui-11.5.0.pre.alpha.datepicker1 app/pb_kits/playbook/pb_filter/docs/_filter_only.jsx
playbook_ui-11.6.0.pre.alpha.rubocopperf1 app/pb_kits/playbook/pb_filter/docs/_filter_only.jsx
playbook_ui-11.6.1.pre.alpha.rubocop.pre.performance1 app/pb_kits/playbook/pb_filter/docs/_filter_only.jsx
playbook_ui-11.5.0.pre.alpha.pre.rubocop app/pb_kits/playbook/pb_filter/docs/_filter_only.jsx
playbook_ui-11.6.0.pre.alpha.momenttz1 app/pb_kits/playbook/pb_filter/docs/_filter_only.jsx
playbook_ui-11.5.0 app/pb_kits/playbook/pb_filter/docs/_filter_only.jsx
playbook_ui-11.4.0.pre.alpha.rubytheme2 app/pb_kits/playbook/pb_filter/docs/_filter_only.jsx
playbook_ui-11.4.0.pre.alpha.rubytheme1 app/pb_kits/playbook/pb_filter/docs/_filter_only.jsx
playbook_ui-11.4.0 app/pb_kits/playbook/pb_filter/docs/_filter_only.jsx
playbook_ui-11.3.0.pre.alpha2 app/pb_kits/playbook/pb_filter/docs/_filter_only.jsx
playbook_ui-11.3.0.pre.alpha1 app/pb_kits/playbook/pb_filter/docs/_filter_only.jsx
playbook_ui-11.3.0 app/pb_kits/playbook/pb_filter/docs/_filter_only.jsx
playbook_ui-11.2.7 app/pb_kits/playbook/pb_filter/docs/_filter_only.jsx
playbook_ui-11.2.6 app/pb_kits/playbook/pb_filter/docs/_filter_only.jsx