How to have a variant be activated by React?

Hi, does anyone know how to have a variant be activated by react (open or closed)?

Hello! You can simply pass in the variants you want using the API:

<PlasmicComponent
component="..."
componentProps={{
  toggleVariant: true,
  variantGroup: 'someVariant',
  // etc.
}}
/>

Thanks!