0.3.2 • Published 11 months ago

react-mail-chips v0.3.2

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

React Mail Chips

A React component library for managing email input as chips.

  • Easy to configure
  • No dependency
  • Simple to use

Table of Contents

Installation

Install the library using npm:

npm install react-mail-chips

Or using yarn:

yarn add react-mail-chips

Usage

Here's a basic example of how to use the ReactMailChips component:

import React, { useState } from "react";
import { ReactMailChips } from "react-mail-chips";

const App = () => {
  const [emails, setEmails] = useState<string[]>([]);

  return (
    <div>
      <ReactMailChips emails={emails} setEmails={setEmails} />
    </div>
  );
};

export default App;

Props

PropertyTypeDescriptionDefault
emailsstring[]An array of email strings.
setEmails(emails:string[]) => voidA function to update the emails array.
classNamestring?Additional class names for the container.""
chipClassNamestring?Additional class names for each chip.""
inputContainerClassNamestring?Additional class names for the input container.""
placeholderstring?Placeholder text for the input field.""
delimitersstring[]?An array of delimiters to separate emails.["Enter",",",";"]

License

This project is licensed under the MIT License

0.3.2

11 months ago

0.3.1

11 months ago

0.3.0

11 months ago

0.2.0

12 months ago

0.1.0

12 months ago

0.0.2

12 months ago

0.0.1

12 months ago