blob: 558eab8212abc9f82aaf4e3a35e175a35a9c9db6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
import { CSSProperties, ReactNode } from "react";
interface VierkantProps {
href?: string;
width?: string;
height?: string;
style?: CSSProperties;
children?: ReactNode;
}
export function Vierkant(props: VierkantProps) {
return <a style={{
padding: 24,
backgroundColor: "var(--background)",
borderRadius: 8,
color: "var(--text)",
margin: 6, // geen margin collapse = 12px marge
display: "inline-block",
position: "relative",
boxSizing: "border-box",
width: props.width ? props.width : undefined,
height: props.height ? props.height : undefined,
...props.style
}} href={props.href}>{props.children}</a>
}
|