Currently, I am working on a project using Next.js and implementing the SCSS module procedure for styling.
An example component directory structure is as follows: SampleComponent -> index.tsx and SampleComponent.module.scss
The code in SampleComponent.module.scss:
.box {
// Some CSS (let's call it set1)
&.disabled {
// Other CSS (let's call it set2)
}
}
In the index.tsx file:
import styles from './SampleComponent.module.scss'
<div className={styles.box}></div>
How can I incorporate the disabled class here?
Thank you in advance!