Sha256: 8693bb43cfd91d546422cd8bc720ec9250841f2c387175d00e9f65dc6127d206
Contents?: true
Size: 1.13 KB
Versions: 948
Compression:
Stored size: 1.13 KB
Contents
import React from 'react' import { Button, Filter, Flex, Select, TextInput } from 'playbook-ui' const FilterOnly = (props) => { const options = [ { value: 'USA' }, { value: 'Canada' }, { value: 'Brazil' }, { value: 'Philippines' }, { value: 'A galaxy far far away...' }, ] return ( <Filter filters={{ 'Full Name': 'John Wick' }} minWidth="360px" {...props} > {({ closePopover }) => ( <form> <TextInput label="Full Name" placeholder="Enter name" {...props} /> <Select blankSelection="Select One..." label="Territory" name="location" options={options} {...props} /> <Flex spacing="between" {...props} > <Button onClick={closePopover} text="Apply" {...props} /> <Button text="Clear" variant="secondary" {...props} /> </Flex> </form> )} </Filter> ) } export default FilterOnly
Version data entries
948 entries across 948 versions & 2 rubygems