aboutsummaryrefslogtreecommitdiff
path: root/src/components/vierkant.tsx
diff options
context:
space:
mode:
authorlonkaars <l.leblansch@gmail.com>2021-01-06 21:33:53 +0100
committerlonkaars <l.leblansch@gmail.com>2021-01-06 21:33:53 +0100
commit65cfd59f908b0d2667395f2d64df8fb81837f744 (patch)
treea40baa4346ce63627465b0095fa70a52555d5894 /src/components/vierkant.tsx
parent78b46754599b887f9b558635f7f1803da3f72692 (diff)
dialoogvensters
Diffstat (limited to 'src/components/vierkant.tsx')
-rw-r--r--src/components/vierkant.tsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/components/vierkant.tsx b/src/components/vierkant.tsx
index 588d73d..558eab8 100644
--- a/src/components/vierkant.tsx
+++ b/src/components/vierkant.tsx
@@ -1,9 +1,10 @@
-import { ReactNode } from "react";
+import { CSSProperties, ReactNode } from "react";
interface VierkantProps {
href?: string;
width?: string;
height?: string;
+ style?: CSSProperties;
children?: ReactNode;
}
@@ -19,6 +20,7 @@ export function Vierkant(props: VierkantProps) {
boxSizing: "border-box",
width: props.width ? props.width : undefined,
height: props.height ? props.height : undefined,
+ ...props.style
}} href={props.href}>{props.children}</a>
}