You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here docs say I must spread props and forward ref to a primitive component, I am not sure how to both implement and type it, React and Astro APIs don't match exactly.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Here docs say I must spread props and forward ref to a primitive component, I am not sure how to both implement and type it, React and Astro APIs don't match exactly.
https://www.radix-ui.com/primitives/docs/guides/composition
I couldn't find any examples of this, for start I tried to make Text component from radix-ui/themes, here is what I have so far:
https://github.com/radix-ui/themes/blob/main/packages/radix-ui-themes/src/components/text.tsx
There are lot of RadixUI helper functions for types and selecting props thats not easy to replicate in Astro.
Beta Was this translation helpful? Give feedback.
All reactions