View Source Phoenix.WebComponent (Phoenix.WebComponent v2.3.3)

Provides a suit of html custom component for phoenix.

This library provides three main functionalities:

  • Enhance form helper with manterial web componet
  • Enhance link helper with manterial web componet
  • Markdown render helper with @gsmlg/lit/remark-element
  • TopAppBar render top app bar with custom element.

form-helper

Form helper

See Phoenix.WebComponent.FormHelper.

javascript-library

JavaScript library

This project provides javascript that define custom elements.

To use the web component, you must load priv/static/phoenix_webcomponent.js into your build tool. Or through npm by install phoenix_webcomponent. The difference is npm version is not bundled.

Link to this section Summary

Functions

Import helpers for internal usage.

Link to this section Functions

Link to this macro

__using__(which)

View Source (macro)

Import helpers for internal usage.

Support:

  • use Phoenix.WebComponent, :component
  • use Phoenix.WebComponent, :live_component