mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: Add new Tag component with styling for tags
This commit is contained in:
parent
a0344ea491
commit
08c4906465
2 changed files with 20 additions and 0 deletions
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>
|
||||||
|
);
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue