How to add a custom class to an element
Add classes or ids with code.
Sometimes you want to manually modify an element that’s generated by Framer, like the class attribute for a div. This can be handy if you want hack around, but beware that we can’t really help you as much when you go too deep.
The goal here is to have an element like:
Start by creating an override.
Now create an override that modifies the [className](<https://reactjs.org/docs/faq-styling.html>) from props to add “test”. Make sure to add a space in the beginning as classes need to be separated with spaces.
Now click publish and you’ll see that the “test” class is added to the element: