man/components/TestComponent.tsx
2022-10-12 22:16:59 +02:00

17 lines
340 B
TypeScript

export default function TestComponent({ name = "world" }) {
return (
<>
<div>Hello, {name}!</div>
<style jsx>{`
div {
background-color: #111;
border-radius: 0.5em;
color: #fff;
margin-bottom: 1.5em;
padding: 0.5em 0.75em;
}
`}</style>
</>
);
}