List of commonly used className

Sorry for the newbie nature of this question. As I am working through the example: I am not sure what the className inside the html.Div does. Can someone point me to some documentation or tutorial so I can learn more? Also, are there a list of commonly used className available.

The app I am trying to build is very similar to the salesforce-crm example.

Thanks in advance for your help!

It is the equivalent of “class” inside an HTML div, but in Python class is a reserved keyword so it is replaced with className. If you have custom styling that applies to certain classes, the className argument is the way to apply this. For example, if you are using Bootstrap styling then creating a button with className=‘btn-primary’ vs className=‘btn-danger’ will result in different looks.

1 Like

Thank you! This is very helpful!