Dedicated Preact wrappers #2239
ouvreboite
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
We'd love to add types for Preact. I'm not sure we'll have time to dedicate to it this year, but if someone contributed a PR for it we'd be grateful! (I can help write the docs for it.) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
👋 Is there any interest in creating preact types for Shoelace?
It's already possible to use Shoelace in preact, but this requires using the react bindings + the preact/compat mode. That's doable in a node environment, but more work in a Deno environment (for example to use Shoelace in Fresh, which uses Preac). Astro is another place where Preact+Shoelace could make sense: Shoelace provides the accessible components and Preact adds the small/lightweight interactivity for the "islands".
Generating preact types from the
custom-elements.json
files is doable. I used blueprintui/custom-element-types as a proof-of-concept, which got me halfway there.So, it seems fairly easy to generate dedicated Preact types (with good JSDoc and event types).
Beta Was this translation helpful? Give feedback.
All reactions