Skip to main content

Tag

v.5.0.0

Installation

yarn add @mercell/tag-react

Usage

Using the Ribbon component is as simple as importing it like this.

import { Tag } from '@mercell/tag-react';
Live Editor
Result

Types, definitions, etc.

TagProps
interface TagProps {
onDelete?: () => void;
} & JSX.IntrinsicElements['button']
NameTypeDefaultRequiredDescription
onDeletefunction-noWhat to do when the user presses the X on the tag