diff options
author | lonkaars <l.leblansch@gmail.com> | 2021-02-05 17:16:52 +0100 |
---|---|---|
committer | lonkaars <l.leblansch@gmail.com> | 2021-02-05 17:16:52 +0100 |
commit | e17bc96e330077454172e9750053491faeccc8fd (patch) | |
tree | 3d59db71b0393674b7512659598c2c757815825d /components | |
parent | bb0c8d7ef101130deb5f4842294bbee87e7eb51b (diff) |
move SettingsPageButton to IconPageButton in ui.tsx
Diffstat (limited to 'components')
-rw-r--r-- | components/ui.tsx | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/components/ui.tsx b/components/ui.tsx index 2523745..11b9ddd 100644 --- a/components/ui.tsx +++ b/components/ui.tsx @@ -59,6 +59,29 @@ export function Button(props: { </a>; } +export function IconLabelButton(props: { + text: string; + icon: ReactNode; + onclick?: () => void; +}) { + return <Button onclick={props.onclick} style={{ + display: "inline-block", + verticalAlign: "top", + padding: 8, + float: "right", + marginLeft: 12 + }}> + {props.icon} + <span style={{ + display: "inline-block", + verticalAlign: "top", + fontWeight: 500, + marginLeft: 8, + marginTop: 3, marginBottom: 3, marginRight: 3 + }}>{props.text}</span> + </Button> +} + export function Input(props: { label?: string; style?: CSSProperties; |