View Source Phoenix.UI.Components.ErrorTag (Phoenix UI v0.1.4)
Provides error tag component.
Link to this section Summary
Functions
Renders error tag component.
Link to this section Functions
@spec error_tag(Phoenix.LiveView.Socket.assigns()) :: Phoenix.LiveView.Rendered.t()
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.rest
(:global
) - Arbitrary HTML or phx attributes.
slots
Slots
inner_block
(required)