1.0.11 • Published 6 years ago

@matteofabio/react-semantic-search v1.0.11

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
6 years ago

Search items in an array

Install

npm i -S @matteofabio/react-semantic-search

Example

import Search from '@matteofabio/react-semantic-search'
import React from 'react';
import { Sidebar, Menu } from 'semantic-ui-react';
import 'semantic-ui-css/semantic.css'

const items = [
  {
    id: 0,
    title: 'Ordini',
    icon: 'cart',
    to: '/OrdersList',
  },
  {
    id: 1,
    title: 'Albero Genealogico Agenti',
    icon: 'tree',
    to: '/TreeAgents',
  },
  {
    id: 2,
    title: 'Dati Agente',
    icon: 'address card outline',
    to: '/privacy/:id',
  },
];

<Sidebar as={Menu} animation="overlay" visible vertical inverted>
    <Search
    items={items}
    onSelectItem={(item) => console.log(item)}
    mainText="title"
    />
</Sidebar>
1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago