Sha256: 4ecfbe89735a01596618e0d5edb7b30045df47ab86cf7fc2ee2aeb02db4a5de1
Contents?: true
Size: 1.48 KB
Versions: 4
Compression:
Stored size: 1.48 KB
Contents
import React from 'react' import Filter from '../_filter' import Button from '../../pb_button/_button' import Flex from '../../pb_flex/_flex' import Select from '../../pb_select/_select' import TextInput from '../../pb_text_input/_text_input' 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 filters={{ 'Full Name': 'John Wick', }} minWidth="375px" 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' }]} {...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 FilterSingle
Version data entries
4 entries across 4 versions & 1 rubygems