import React from 'react'; import IconButton from '../icon-button/icon-button'; import Text from '../text/text'; interface ITag { /** Name of the tag. */ tag: string /** Callback when the X icon is pressed. */ onDelete: (tag: string) => void } /** A single editable Tag (used by TagInput). */ const Tag: React.FC = ({ tag, onDelete }) => { return (
{tag} onDelete(tag)} transparent />
); }; export default Tag;