tremorlabs / tremor-raw

Copy & Paste React components to build modern web applications.
https://raw.tremor.so
Apache License 2.0
386 stars 8 forks source link

[Bug]: TabsNavigation components doens't match his examples #31

Closed grsantos2215 closed 3 weeks ago

grsantos2215 commented 3 weeks ago

Tremor Raw Component Version

0.0.0

Link to minimal reproduction

https://raw.tremor.so/docs/ui/tab-navigation

Steps to reproduce

Just copy and paste the code on the project and try to import him.

What is expected?

the component is expected to work as in the example

What is actually happening?

On the examples, its possible to see this code: image

But, when copy and paste the component for the project, the code is that: image

And the href prop don't exist on the code.

What browsers are you seeing the problem on?

Chrome, Other

Any additional comments?

No response

severinlandolt commented 3 weeks ago

Hi @grsantos2215, I don't think you are using the component correctly. I see you are importing Components from the normal Tab. You have to import the components from TabNavigation, which are { TabNavigation, TabNavigationLink }

grsantos2215 commented 3 weeks ago

Hi @severinlandolt, thanks for the update, but I really copy the correct component, you can see on the "add component" section the same imports of my code

https://raw.tremor.so/docs/ui/tab-navigation

severinlandolt commented 3 weeks ago

Ah, I misunderstood your intention, my bad! Should be fixed by now :)

grsantos2215 commented 3 weeks ago

Really Thanks.