diff --git a/Parts/Button.js b/Parts/Button.js
index 14b101d..8562218 100644
--- a/Parts/Button.js
+++ b/Parts/Button.js
@@ -22,7 +22,6 @@ function ButtonBase(props) {
color = "bg-accent5 hover:bg-accent5-dark"
break;
default:
- color = ""
break;
}
return (
diff --git a/Parts/Input.js b/Parts/Input.js
index 37b936a..8eaf093 100644
--- a/Parts/Input.js
+++ b/Parts/Input.js
@@ -1,10 +1,10 @@
import React from 'react'
-function Input(props) {
+export default function Input(props) {
return (
-
+
{props.title != null ? (
-
)
}
-function TextArea(props) {
+export function TextArea({label, title, name, id, children, ...props}) {
return (
-
-
- {props.title}
+
+
+ {title}
-
- {props.children}
+
+ {children}
)
}
-export default Input
-export {
- TextArea
+export function CheckBox({label, title, name, id, children, ...props}){
+ return(
+
+
+ {title != null ? (
+
+ {title}
+
+ ) : null}
+ {children}
+
+ )
}
diff --git a/Parts/Text.js b/Parts/Text.js
index 52de582..9456c3b 100644
--- a/Parts/Text.js
+++ b/Parts/Text.js
@@ -8,7 +8,33 @@ function Text() {
)
}
export function Divider() {
- return
;
+ return
;
+}
+export function ClickableText({className, ...props}){
+ let color = "text-secondary hover:text-primary"
+ switch (props.type) {
+ case "warning":
+ color = "text-accent4 hover:text-accent4-dark"
+ break;
+ case "danger":
+ color = "text-red-700 hover:text-red-800"
+ break;
+ case "accent":
+ color = "text-accent hover:text-accent-dark"
+ break;
+ case "accent2":
+ color = "text-accent2 hover:text-accent2-dark"
+ break;
+ case "accent3":
+ color = "text-accent3 hover:text-accent3-dark"
+ break;
+ case "accent5":
+ color = "text-accent5 hover:btextg-accent5-dark"
+ break;
+ default:
+ break;
+ }
+ return {props.children}
}
export default Text