View Source Moon.Components.AsComponent (Moon v2.89.1)

Some kind of "polymorphic" stuff. "as" propertry is responsible for HTNL tag is rendered.

Properties

  • class :css_class
  • as :string, values!: ~w(a button div), default: "button"
  • href :string
  • target :string
  • rel :string
  • values :list, default: []
  • role :string
  • attrs :map, default: %{}
  • is_selected :boolean, default: false
  • value :string
  • testid :string
  • id :string
  • aria_label :string

Slots

  • default

Events

  • on_click

Summary

Functions

Callback implementation for Surface.Component.render/1.