type for children
Closed this issue · 1 comments
mvolkmann commented
I have this bit of code that is working fine. What TypeScript type should use for children
and where do I get the type definition?
const BaseHtml = ({children}) => (
<html>
<head>
<title>HTMX Active Search</title>
<script src="https://unpkg.com/htmx.org@1.9.9"></script>
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body class="p-8">{children}</body>
</html>
);
arthurfiorette commented
import type {Html} from '@kitajs/html';
Html.Children;