diff --git a/ui/src/App.tsx b/ui/src/App.tsx
index a92d8f1..e264473 100644
--- a/ui/src/App.tsx
+++ b/ui/src/App.tsx
@@ -1,7 +1,25 @@
+import Button from "@/components/Button";
+import TextField from "@/components/TextField";
+
export default function App() {
return (
-
-
+
+
+
Buttons
+
+
+
+
+
+
Text Fields
+
+
+
+
);
}
diff --git a/ui/src/components/Button.tsx b/ui/src/components/Button.tsx
index 632f0cf..dddab3c 100644
--- a/ui/src/components/Button.tsx
+++ b/ui/src/components/Button.tsx
@@ -2,14 +2,28 @@ import { HTMLAttributes, ReactNode } from "react";
export interface ButtonProps extends HTMLAttributes
{
children: ReactNode,
+ variant?: "filled" | "outlined" | "text"
}
export default function Button({
children,
+ variant = "filled",
...rest
}: ButtonProps) {
+ let varinatStyle = ""
+ if (variant === "filled") {
+ varinatStyle = "b-none bg-primary text-white hover:bg-secondary"
+ }
+ if (variant === "outlined") {
+ varinatStyle = "b-1 border-gray-400 border-solid bg-bg hover:bg-hover text-primary"
+ }
+ if (variant === "text") {
+ varinatStyle = "b-none bg-transparent text-primary hover:text-secondary hover:bg-hover"
+ }
+
return (