Help with using cssClass on a Select

Hi,
Can anyone show me an example of how to use a cssClass with a Select component?
I am trying to use a cssClass to hide a component by setting the cssClass=“display:none” but this does not work.
Ideally, I would like to conditionally hide the component depending upon the value of a const variable.
Any help with this would be most welcome.

Hi @Alistair,

The cssClass applies custom css class to the top level element. You can use this class to create custom rules.

Thank you Gabi.
I resolved my issue by simply wrapping the Select component with an if condition.
Like this:
? show Select component : do not show Select component