feat: Add new Tag component with styling for tags

This commit is contained in:
ChristoferMendes 2024-05-10 12:09:44 -03:00
parent a0344ea491
commit 08c4906465
2 changed files with 20 additions and 0 deletions

View file

@ -0,0 +1,11 @@
import { style } from "@vanilla-extract/css";
export const tagStyle = style({
borderRadius: '3px',
border: '1px solid #FFFFFF33',
padding: '2px 5px',
});
export const tagText = style({
fontSize: '11px',
})

View file

@ -0,0 +1,9 @@
import * as styles from "./tag.css";
export function Tag({ children }: Readonly<{ children: React.ReactNode }>) {
return (
<div className={styles.tagStyle}>
<span className={styles.tagText}>{children}</span>
</div>
);
}