A
A
asqwerty2022-01-05 14:41:05
JavaScript
asqwerty, 2022-01-05 14:41:05

How to write this with CSS Modules?

Hello. There is a component whose classes are written like this (sorry for the picture):
61d583a28a3a2879257801.png
Please tell me how to register the same classes, but using CSS modules. Thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Scoo909010, 2022-01-05
@asqwerty

className={`${styles.modal__wrapper} && ${props.isOpened ? styles.open : styles.close}` }
I would try something like. Not sure if this will work, of course, but in theory it should.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question