#Hw to use component.

16 messages · Page 1 of 1 (latest)

surreal arrow
#

I'm getting this error while trying to use a mantine component.

stuck rune
surreal arrow
#

I'm a newbie. and i'm working with a mantine component.

#

i'm trying to import the component to app.tsx

stuck rune
#

I guess you took the code from ui.mantine.dev?

fiery quest
#

yeah that's from UI

stuck rune
#

That's not Mantine components.

fiery quest
#

basically react has a concept of props @surreal arrow

#

you need to supply a prop to HeaderAction

#

so it will look sort of like
<HeaderAction links={[]} />

#

and within that array you define the links, or you can use a variable

#

you can see in the HeaderAction file there should be a type definition

surreal arrow
fiery quest
#

it will tell you the structure the array needs to take