@deep-foundation/deepcase
Version:
[](https://gitpod.io/#https://github.com/deep-foundation/deepcase) [](https://discord.gg/deep-
8 lines • 658 B
JavaScript
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { Tag, TagLabel, TagLeftIcon } from '@chakra-ui/react';
import React from 'react';
import { TbAtom } from 'react-icons/tb';
export const TagLink = React.memo(({ size = 'sm', borderRadius = 'full', version, hrefSpace = '/', leftIcon = TbAtom, onClick, colorScheme = 'blue' }) => {
return (_jsx("a", { href: hrefSpace, onClick: onClick, children: _jsxs(Tag, { size: size, variant: 'subtle', colorScheme: colorScheme, borderRadius: borderRadius, children: [_jsx(TagLeftIcon, { as: leftIcon }), _jsx(TagLabel, { children: version })] }) }));
});
//# sourceMappingURL=tag-component.js.map