mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-02-02 22:53:36 +00:00
Create reusable tag component
This commit is contained in:
parent
b755be0846
commit
f3859b911b
21
src/components/Tag/Tag.jsx
Normal file
21
src/components/Tag/Tag.jsx
Normal file
@ -0,0 +1,21 @@
|
||||
import { Paragraph } from "tamagui";
|
||||
|
||||
const Tag = ({ bc, text }) => {
|
||||
return (
|
||||
<div
|
||||
style={{
|
||||
backgroundColor: bc,
|
||||
display: "flex",
|
||||
padding: "0px 8px",
|
||||
alignItems: "center",
|
||||
borderRadius: "67px",
|
||||
}}
|
||||
>
|
||||
<Paragraph fontWeight={"500"} fontSize={"10px"}>
|
||||
{text}
|
||||
</Paragraph>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export { Tag };
|
1
src/components/Tag/index.jsx
Normal file
1
src/components/Tag/index.jsx
Normal file
@ -0,0 +1 @@
|
||||
export { Tag } from "./Tag";
|
Loading…
x
Reference in New Issue
Block a user