diff options
Diffstat (limited to 'src/components/ui.tsx')
-rw-r--r-- | src/components/ui.tsx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/components/ui.tsx b/src/components/ui.tsx index c2ce35e..37c24b3 100644 --- a/src/components/ui.tsx +++ b/src/components/ui.tsx @@ -31,15 +31,17 @@ export function Button(props: { text?: string; children?: ReactNode; style?: CSSProperties; + href?: string; onclick?: (() => void); }) { - return <div onClick={props.onclick} style={{ + return <a onClick={props.onclick} href={props.href} style={{ padding: props.text ? 8 : 16, textAlign: props.text ? "center" : "left", borderRadius: 8, backgroundColor: "var(--disk-a)", cursor: "pointer", position: "relative", + textDecoration: "none", ...props.style }}> { @@ -51,7 +53,7 @@ export function Button(props: { : undefined } { props.children } - </div>; + </a>; } export function Input(props: { |