mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-18 00:33:59 +00:00
feat: Add new Tag component with styling for tags
This commit is contained in:
11
src/renderer/src/components/tag/tag.css.ts
Normal file
11
src/renderer/src/components/tag/tag.css.ts
Normal 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',
|
||||
})
|
||||
9
src/renderer/src/components/tag/tag.tsx
Normal file
9
src/renderer/src/components/tag/tag.tsx
Normal 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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user