Skip to content

astralservices/react-chip

 
 

Repository files navigation

React Chip

Manage a list of chips based on a strings list.

Modified from https://github.com/cjpatolio/react-chip

Install

Install with npm

$ npm install @astralservices/react-chip

Install with Yarn

$ yarn add @astralservices/react-chip

Usage

import React from 'react'
import ReactChip from '@astralservices/react-chip'

// basic usage
<ReactChip onChange={chips => {console.log(chips)}} />

// advanced usage
<ReactChip
  defaultChips={[]}
  id=""
  name=""
  labelClass=""
  inputClass=""
  chipClass=""
  focusClass=""
  regex={/([A-Z])\w+/g}
  onChange={(chips) => {
    console.log(chips)
  }}
/>

License

Designed with ♥ by CJ Patoilo.

Forked by Astral Services.

Licensed under the MIT License.

About

Manage a list of chips based on a strings list.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 92.3%
  • HTML 7.7%