Join the Webstudio community

Updated last year

Class Name as default on properties

At a glance

The community members discuss the possibility of making the className prop a default in their codebase, similar to how id is handled. They agree that this would be beneficial, as it would save them from having to add the className prop manually each time. While there is no explicitly marked answer, the comments suggest that the community members are open to implementing this change, with one member mentioning a related pull request that has been released.

Useful resources
Any chance we could get classname to be a default in props like we have for ID.

I use it all the time, would love to not need the extra click to add it and also we have so much space there. I feel like it's just beneficial.
Attachment
image.png
B
A
O
6 comments
We call them initial props. They do not have defaults, just shown initially
yes, initial prop πŸ™‚ Would be awesome. Save me from clicking xD
I guess we could
Add a reply
Sign up and join the conversation on Discord