Table filter for search box.
npm install @jswork/antbf-search-box[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]
shell
npm install -S @jswork/antbf-search-box
`properties
| Name | Type | Required | Default | Description |
| --------- | ------ | -------- | ------- | ------------------------------------- |
| className | string | false | - | The extended className for component. |
| value | object | false | null | Default value. |
| onChange | func | false | noop | The change handler. |
usage
1. import css
`scss
@import "~@jswork/boilerplate-react-component/dist/style.css"; // or use sass
@import "~@jswork/boilerplate-react-component/dist/style.scss";
// customize your styles:
$boilerplate-react-component-options: ()
`
2. import js
`js
import React from 'react';
import AntbfSearchBox from '../@jswork/boilerplate-react-component';
import styled from 'styled-components'; const Container = styled.div
; export default (props: any) => {
return (
);
};
``[version-image]: https://img.shields.io/npm/v/@jswork/antbf-search-box
[version-url]: https://npmjs.org/package/@jswork/antbf-search-box
[license-image]: https://img.shields.io/npm/l/@jswork/antbf-search-box
[license-url]: https://github.com/afeiship/antbf-search-box/blob/master/LICENSE.txt
[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/antbf-search-box
[size-url]: https://github.com/afeiship/antbf-search-box/blob/master/dist/antbf-search-box.min.js
[download-image]: https://img.shields.io/npm/dm/@jswork/antbf-search-box
[download-url]: https://www.npmjs.com/package/@jswork/antbf-search-box