Import & Use RuxButton #1267
-
Hi! In react, I'm trying to import the button rux-button. And I get "Property 'rux-button' does not exist on type 'JSX.IntrinsicElements'." and it won't load the page/crash the page
Here is a sandbox for easy reproduction. If this is an issue I can convert this to an issue but I think it's more me missing something :) Thanks for any help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hey @Oceanestars, is there any specific reason that you're importing the rux-button from the |
Beta Was this translation helpful? Give feedback.
There are a few different packages available depending on what framework you're using, which can get confusing - and our docs don't do an amazing job at pointing that out on first glance, so I apologize. For future reference,
@astrouxds/react
is our component library wrapped for React,@astrouxds/angular
is (you guessed it!) for Angular, and the@astrouxds/astro-web-components
is the vanilla web components library which can be used with vanilla HTML/JS or Vue.