Surface.Components.Form.Label (surface v0.3.2) View Source
Defines a label.
Provides similar capabilities to Phoenix's built-in label/2
function.
Option class
can be set directly and will override anything in opts
.
All given options are forwarded to the underlying tag. A default value is provided for for attribute but can be overriden if you pass a value to the for option. Text content would be inferred from field if not specified.
Properties
- form :form - The form identifier.
- field :atom - The field name.
- class :css_class - The CSS class for the underlying tag.
- text :any - The text for the generated
<label>
element, if no content (default slot) is provided. . - opts :keyword, default: [] - Options list.
Link to this section Summary
Functions
Callback implementation for Phoenix.LiveComponent.mount/1
.
Callback implementation for Phoenix.LiveComponent.render/1
.
Callback implementation for Phoenix.LiveComponent.update/2
.
Link to this section Functions
Callback implementation for Phoenix.LiveComponent.mount/1
.
Callback implementation for Phoenix.LiveComponent.render/1
.
Callback implementation for Phoenix.LiveComponent.update/2
.