I'm using CSS modules (.scss) with Next.js and have a kebab naming-convention. In other words, something like this:
.member-btn {
background: #fff;
}
The problem that I'm facing is that in order to use this with className I have to do it like styles["member-btn"]. E.g.
<Button className={styles["member-btn"]}>
Hello world
</Button>
However, I would like to use it with styles.memberBtn and use it like an object (IDE also provides built-in support for this). E.g.
<Button className={styles.memberBtn}>Hello world</Button>
Is this possible in Next.js?