We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1f2d1a commit 89e10b9Copy full SHA for 89e10b9
src/components/elements/Tag.tsx
@@ -0,0 +1,19 @@
1
+import { HTMLAttributes } from "react";
2
+import { twMerge } from "tailwind-merge";
3
+
4
+const Tag = (props: HTMLAttributes<HTMLDivElement>) => {
5
+ const { className, children } = props;
6
+ return (
7
+ <div
8
+ className={twMerge(
9
+ "inline-flex border border-lime-400 gap-2 text-lime-400 px-3 py-1 rounded-full uppercase items-center",
10
+ className
11
+ )}
12
+ >
13
+ <span>✶</span>
14
+ <span className="text-sm">{children}</span>
15
+ </div>
16
+ );
17
+};
18
19
+export default Tag;
0 commit comments