Close / hide the panel in uxp

Check this answer. If I understand correctly what you’re asking, it might solve the issue:

1 Like