#What's the best way to add a variant for <Anchor /> please ?

7 messages · Page 1 of 1 (latest)

late geyser
#

I'd like an <Anchor /> with a dotted border

steep bronze
late geyser
#

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 ?

upper dawn
late geyser
#

@upper dawn thanks you it works but why if you use Input.extend ".input" is working

#

there is something I don't understand

upper dawn