2.1.4 • Published 1 year ago

@e4ia/seniors-identification-manager v2.1.4

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

@e4ia/seniorsidentificationmanager - Seniors Identification Manager 🆔

App: E4LINK-Dashboard

A robust and user-friendly module for managing senior citizens' identification data in React applications. 🌟


📑 Table of Contents


🚀 Installation

Install the package via npm:

npm install @e4ia/seniorsidentificationmanager

Or via yarn:

yarn add @e4ia/seniorsidentificationmanager

🛠️ Usage

Integrate the SeniorsIdentificationManager component into your React project like this:

import React from 'react';
import { SeniorsIdentificationManager } from '@e4ia/seniorsidentificationmanager';

const App = () => {
  return (
    <div>
      <h1>Seniors Identification Manager 🆔</h1>
      <SeniorsIdentificationManager />
    </div>
  );
};

export default App;

📜 API

SeniorsIdentificationManager

A component designed to handle and display senior citizens' identification data.

Props:

NameTypeDefaultDescription
dataArray[]An array of seniors' identification data.
onSelectfunctionnullCallback triggered when a senior is selected.
placeholderstring"Search seniors..."Placeholder for the search input.
readOnlybooleanfalseMakes the component read-only.

💡 Examples

Basic Example

<SeniorsIdentificationManager 
  data={[{ id: 1, name: "John Doe" }, { id: 2, name: "Jane Smith" }]} 
  onSelect={(senior) => console.log(senior)} 
/>

This will display a simple seniors' identification manager with basic functionality.

Advanced Example with Custom Placeholder

<SeniorsIdentificationManager 
  data={[{ id: 1, name: "Alice Johnson" }, { id: 2, name: "Bob Brown" }]} 
  onSelect={(senior) => console.log("Selected:", senior)} 
  placeholder="Find a senior..." 
/>

This will add a custom placeholder to the search input.


📝 License

This project is licensed under the MIT License - see the LICENSE file for details. 📄

2.1.4

1 year ago

2.1.3

1 year ago