Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

type for children #72

Closed
mvolkmann opened this issue Dec 11, 2023 · 1 comment
Closed

type for children #72

mvolkmann opened this issue Dec 11, 2023 · 1 comment

Comments

@mvolkmann
Copy link

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
Copy link
Contributor

import type {Html} from '@kitajs/html';

Html.Children;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants