0.0.0-alpha.3 • Published 11 months ago

@chakra-ui/c-tag v0.0.0-alpha.3

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

@chakra-ui/c-tag

Tag component is used for items that need to be labeled, categorized, or organized using keywords that describe them.

Installation

yarn add @chakra-ui/c-tag
# or
npm i @chakra-ui/c-tag

Import

This package exports the following components :

  • CTag : The wrapper for all the tag elements.
  • CTagLabel : The label for tag's text content.
  • CTagRightIcon : The icon placed on the left side of the tag.
  • CTagLeftIcon : The icon placed on the right side of the tag.
  • CTagCloseButton : The close button for the tag.

Usage

Sample Tag :

<c-tag>Sample Tag</c-tag>

With custom attributes :

<c-tag size="md" variant="solid" color-scheme="teal">Sample Tag</c-tag>

With left icon

<c-tag
  ><c-tag-left-icon name="add" /><c-tag-label>Sample Tag</c-tag-label></c-tag
>

With right icon

<c-tag
  ><c-tag-label>Sample Tag</c-tag-label><c-tag-right-icon name="check"
/></c-tag>

With close button

<c-tag><c-tag-label>Sample Tag</c-tag-label><c-tag-close-button /></c-tag>

With custom element

<c-tag><my-custom-element /><c-tag-label>Sample Tag</c-tag-label></c-tag>

Props

variant : "subtle" | "solid" | "outline" colorScheme: "whiteAlpha" | "blackAlpha" | "gray" | "red" | "orange" | "yellow" | "green" | "teal" | "blue" | "cyan" | "purple" | "pink" | "linkedin" | "facebook" | "messenger" | "whatsapp" | "twitter" | "telegram" | any color scheme added to the theme size: "sm" | "md" | "lg"

2.1.0-beta.11

1 year ago

2.1.0-beta.10

1 year ago

2.1.0-beta.5

1 year ago

2.1.0-beta.7

1 year ago

2.1.0-beta.6

1 year ago

2.1.0-beta.4

1 year ago

2.1.0-beta.3

1 year ago

2.1.0-beta.2

1 year ago

2.1.0-beta.1

1 year ago

1.0.0-beta.2

1 year ago

1.0.0-beta.1

1 year ago

0.0.0-alpha.3

1 year ago

1.0.0-beta.0

1 year ago

0.0.0-alpha.1

2 years ago