View Source Moon.Design.Form.Field.Field (Moon v2.89.1)

Copy of Surface.Components.Form.Field

Properties

  • name :any, required: true - The field name
  • class :css_class - The CSS class for the generated <div> element
  • id :string - id attribute for DOM element
  • testid :string - data-testid attribute for DOM element
  • form :form, from_context: {Surface.Components.Form, :form} - An identifier for the form
  • feedback_for :string - If you changed the default ID on the input, provide it here. (Useful when there are multiple forms on the same page, each with an input of the same name. LiveView will exhibit buggy behavior without assigning separate id's to each.)

Slots

  • default, required: true - The content for the field

Summary

Functions

Callback implementation for Surface.Component.render/1.