Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@chakra-ui/tag

Package Overview
Dependencies
Maintainers
4
Versions
450
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chakra-ui/tag

This component displays as a tag with an optional link and/or button to remove the given tag.

  • 1.1.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
201K
decreased by-57.95%
Maintainers
4
Weekly downloads
 
Created

What is @chakra-ui/tag?

@chakra-ui/tag is a component library from Chakra UI that provides a set of accessible, customizable, and reusable tag components for React applications. These tags can be used to display labels, categories, or any other type of information that needs to be highlighted or categorized.

What are @chakra-ui/tag's main functionalities?

Basic Tag

This feature allows you to create a basic tag component that can be used to display simple labels or categories.

import { Tag } from '@chakra-ui/react';

function BasicTag() {
  return <Tag>Sample Tag</Tag>;
}

Tag with Color Scheme

This feature allows you to create a tag with a specific color scheme, making it easy to differentiate between different types of tags.

import { Tag } from '@chakra-ui/react';

function ColoredTag() {
  return <Tag colorScheme='green'>Green Tag</Tag>;
}

Tag with Icon

This feature allows you to add an icon to your tag, providing a visual cue to the user about the tag's purpose or category.

import { Tag, TagLabel, TagLeftIcon } from '@chakra-ui/react';
import { CheckIcon } from '@chakra-ui/icons';

function TagWithIcon() {
  return (
    <Tag>
      <TagLeftIcon boxSize='12px' as={CheckIcon} />
      <TagLabel>Tag with Icon</TagLabel>
    </Tag>
  );
}

Closable Tag

This feature allows you to create a tag that can be closed or removed by the user, providing a way to manage tags dynamically.

import { Tag, TagLabel, TagCloseButton } from '@chakra-ui/react';

function ClosableTag() {
  return (
    <Tag>
      <TagLabel>Closable Tag</TagLabel>
      <TagCloseButton />
    </Tag>
  );
}

Other packages similar to @chakra-ui/tag

Keywords

FAQs

Package last updated on 13 Apr 2021

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc