View Source Phoenix.UI.Components.ErrorTag (Phoenix UI v0.1.9)

Provides error tag component.

Link to this section Summary

Functions

Renders error tag component.

Link to this section Functions

Renders error tag component.

examples

Examples

<.error_tag>
  <%= @error %>
</.error_tag>

attributes

Attributes

  • class (:string) - Override the classes applied to the component.
  • element (:string) - Defaults to "p".
  • extend_class (:string) - Extend existing classes applied to the component.
  • Global attributes are accepted. Arbitrary HTML or phx attributes.

slots

Slots

  • inner_block (required)