react-searchable-filter
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

react-searchable-filter

Searchable React Filter component

NPM JavaScript Style Guide Netlify Status

demo

Install

npm install --save react-searchable-filter-box

Guide and documentation

Read the full Documentation here.

Usage

import React from 'react'

import Filter from 'react-searchable-filter'
import 'react-searchable-filter/dist/index.css'

const App = () => {
  const data = [
    {
      filterBy: 'username',
      description: 'filter by username',
      values: ['John', 'Albert', 'Robert']
    },
    {
      filterBy: 'status',
      values: ['finished', 'not-finished', 'pending'],
      description: 'filter by status'
    }
  ]
  return <Filter options={data} placeholder='Filter users' />
}

Demo

Check out the working demo of the react-searchable-filter.

License

MIT © ashwinKumar0505

Readme

Keywords

none

Package Sidebar

Install

npm i react-searchable-filter

Weekly Downloads

1

Version

1.1.0

License

MIT

Unpacked Size

103 kB

Total Files

13

Last publish

Collaborators

  • cb-dev