Skip to content

Commit 9307a43

Browse files
Added Key Element
1 parent 0af259e commit 9307a43

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

src/components/elements/Key.tsx

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)