The close Command

Syntax

close [fullscreen] [<expression>]

Description

The close command closes an element. It automatically detects the element type and calls the right API:

If no target is given, defaults to me.

Examples

<dialog id="my-dialog">
  <p>Hello!</p>
  <button _="on click close #my-dialog">Close</button>
</dialog>

<button _="on click close fullscreen">Exit Fullscreen</button>