#What's the best way to add a variant for <Anchor /> please ?
7 messages · Page 1 of 1 (latest)
Anchor: Anchor.extend({ classNames: classes }),
.anchor {
&[data-variant='dotted'] {
border-bottom: 2px solid green;
border-radius: 0;
padding-left: 0;
padding-right: 0;
}
}
<Anchor
variant="dotted"
c="primary"
underline="never"
>
Test
</Anchor>
seems not working :/ I'm missing something ?
Try using .root class instead of .anchor
@upper dawn thanks you it works but why if you use Input.extend ".input" is working
there is something I don't understand
https://mantine.dev/core/input/?t=styles-api
https://mantine.dev/core/anchor/?t=styles-api
Selector names depend on the component