Sha256: f0ca93d06284182b6f00b54c103cdc7e584215fda93d9bfd0066a3a4f0a67681
Contents?: true
Size: 1.3 KB
Versions: 94
Compression:
Stored size: 1.3 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 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' }]} {...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
94 entries across 94 versions & 1 rubygems