# `CKEditor5.Components.FormAttrs`
[🔗](https://github.com/Mati365/ckeditor5-phoenix/blob/v1.28.2/lib/components/helpers/form_attrs.ex#L1)

Common helper functions for CKEditor5 form components.

# `assign_form_fields`

Assigns form fields if the `form` and `field` attributes are provided.
This function checks if the `form` is present and if the `field` is an atom.
It then retrieves the input name and value from the form and assigns them to the assigns map.

# `form_attrs`
*macro* 

Defines form-related attributes that are commonly used in CKEditor5 components.
This includes name, form, field, value, and required attributes for form integration.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
