View Source Surface.Components.Form.Field (surface v0.11.4)

Defines a form field.

The Field component sets the provided field name into the context so child components like input fields and labels can retrieve it and use it as the default field.

Properties

  • name :any, required: true - The field name
  • class :css_class - The CSS class for the generated <div> element

Slots

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

Summary

Functions

Callback implementation for Surface.Component.render/1.