0.0.11 • Published 2 years ago

@ant-extensions/searchbar v0.0.11

Weekly downloads
80
License
MIT
Repository
github
Last release
2 years ago

Ant Extensions - Search Bar

Kibana style searchbar with filters


Install

# Using npm
npm install @ant-extensions/searchbar

# Using yarn
yarn add @ant-extensions/searchbar

Basic Usage

import React, { useState } from "react";
import { SearchBar } from "@ant-extensions/searchbar";

export const Tester = () => {
  return <SearchBar collapsed={false} filters={[]} fields={[]} emptyField={"Message when fields list is empty"} />;
};
import React, { useState } from "react";
import { FilterBar } from "@ant-extensions/searchbar";

export const Tester = () => {
  return <FilterBar filters={[]} fields={[]} emptyField={"Message when fields list is empty"} />;
};

Provide a default time filter { isTimeField: true, isRequired: true } to enable time input


FieldSelect Select input for fields, to maintain consistency throughout the application

import React, { useState } from "react";
import { Form } from "antd";
import { FieldSelect } from "@ant-extensions/searchbar";

export const Tester = () => {
  return (
    <Form.Item name="field">
      <FieldSelect value={"fieldKey"} onChange={(fieldKey) => "do something"} fields={[]} />;
    </Form.Item>
  );
};
0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago