#How do I use an already created Header Component?

9 messages · Page 1 of 1 (latest)

tranquil anchor
#

I am looking at this headers: https://ui.mantine.dev/category/headers#double-header-colored

Do I have to copy the code from the header i'd like or can I just directly import them and use them?
In case I can directly import them, where can I find the component name and what values I can pass to the component?

chilly grove
tranquil anchor
#

Can I still import a component of a tsx file into my js file?

chilly grove
tranquil anchor
#

No I mean copying the component in a .tsx file

#

And then from my other .js component import it

#

Is there going to be an issue?

#

It would be cool if you guys added an option to let you choose the code you want either from js or ts