Add props to an element programmatically
In one of my components, I pass an element as a prop, although I'd like to add the class argument to it in order to style it.
5 Replies
update: I was able to get it to work by passing a function definition that accepted a css_class argument and then calling that inside the component, although i find this approach quite tedious and id really appreciate a better solution...
you can use
<Dynamic>
for thiswhat is it?
ty
oh exactly what i needed, ty