Skip to content

Overview

Van Element exposes a single function: define(...). It can take up to 3 arguments:

  • name
    Custom element tag.
  • element
    VanJS functional component.
  • options (optional)
    Extra Shadow DOM options.

The provided VanJS functional component will be called with an object containing the following properties: