aboutsummaryrefslogtreecommitdiff
path: root/src/components/vierkant.tsx
blob: 588d73d48e755d96a7cb4eee0c8344ee226e7ba0 (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
import { ReactNode } from "react";

interface VierkantProps {
	href?: string;
	width?: string;
	height?: string;
	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,
	}} href={props.href}>{props.children}</a>
}