Open samiresua opened 2 months ago
Hi @samiresua, when you say "passed to component", do you mean applied to the components css or passed in as a prop? The cfWidth
variable is meant to set the components css width value, and does not get passed in as a prop to the component.
Sorry, I mean that the className that is passed to my component doesn’t update when cfWidth is changed. Meaning the width never changes. 👍
For example:
The following doesn't pass a width class to the component it is assigned to
builtInStyles: ['cfWidth']
A work around im currently using it to use the default value syntax as shown below, however this seems to stop working if
builtInStyles
has any kind of value (anything apart fromundefined
) - meaning if i try to turn off margin (ie -builtInStyles: []
) it stops working again.