<s-popover> no "active" property (programatically show/hide)

Hi, just wondering why it is not possible to hide/show a popover based on a boolean like it was used to work in Polaris react?

React had this prop:

Web component props:

We are forced to use a button with a commandFor to display the modal, with no way to programatically close it.

Are you planning to implement it in the future or should I go back to using the Polaris version for now?

Thanks

1 Like

There are show, hide, toggle events available.

You just need a reference to the component itself, but you can absolutely use these events instead of the commandFor pattern.

@bkspace Could you show an example of how you are using ref to show/hide it, please?