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 0af259e commit 9307a43Copy full SHA for 9307a43
src/components/elements/Key.tsx
@@ -0,0 +1,19 @@
1
+import { HTMLAttributes } from "react";
2
+import { twMerge } from "tailwind-merge";
3
+
4
+const Key = (props: HTMLAttributes<HTMLDivElement>) => {
5
+ const { className, children, ...rest } = props;
6
+ return (
7
+ <div
8
+ className={twMerge(
9
+ "size-14 bg-neutral-300 inline-flex border-white/10 px-3 py-1.5 rounded-2xl text-black/80 justify-center items-center",
10
+ className
11
+ )}
12
+ {...rest}
13
+ >
14
+ {children}
15
+ </div>
16
+ );
17
+};
18
19
+export default Key;
0 commit comments