man/components/TestComponent.tsx

17 lines
340 B
TypeScript
Raw Normal View History

2022-10-12 22:16:59 +02:00
export default function TestComponent({ name = "world" }) {
2022-10-12 22:06:54 +02:00
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>
</>
2022-10-12 22:16:59 +02:00
);
2022-10-12 22:06:54 +02:00
}