Sha256: 49ac2abfab5104387880e2a668d4f9cec5c071b413831cecfb28e9e87a997433
Contents?: true
Size: 1.24 KB
Versions: 948
Compression:
Stored size: 1.24 KB
Contents
import React from 'react' import { Button, Filter, Flex, Select, TextInput } from 'playbook-ui' const FilterNoSort = (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" results={546} sortValue={[{ name: 'popularity', dir: 'desc' }]} {...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 FilterNoSort
Version data entries
948 entries across 948 versions & 2 rubygems