📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP
Socket
Sign inDemoInstall
Socket

chakra-tags-input

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chakra-tags-input

a dynamic tags input component for chakra ui

0.3.0
latest
Source
npm
Version published
Weekly downloads
45
542.86%
Maintainers
1
Weekly downloads
 
Created
Source

Chakra Tags Input Guide

Congrats! You just saved yourself hours of work by using this package for tags input field. That renders respective tags and and provides an easy interface for removing and adding new tags

Commands

To install follow these commands :

npm i chakra-tags-input
yarn add chakra-tags-input

Usage

Here is a simple working react Functional Component for this package :

import { SyntheticEvent } from 'react';
import { ChakraTagsInput } from "chakra-tags-input";

const TestComponent = () => {
	const [tags, setTags] = useState<string[]>(['test1', 'test2']);

	const handleTagsChange = (
		event: SyntheticEvent,
		tags: string[]
		) =>{
    setTags(tags)
  };

	return(
		<ChakraTagsInput
        tags={tags}
        onTagsChange={handleTagsChange}
      />
	)
}

Demo with all options applied

Check it out in this Sandbox


Keywords

chakra-ui

FAQs

Package last updated on 16 May 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts