diff --git a/docs/src/examples/QField/TagWrapper.vue b/docs/src/examples/QField/TagWrapper.vue new file mode 100644 index 00000000000..ec6ef86f999 --- /dev/null +++ b/docs/src/examples/QField/TagWrapper.vue @@ -0,0 +1,31 @@ + + + diff --git a/docs/src/pages/vue-components/field.md b/docs/src/pages/vue-components/field.md index 2380b52268f..59ce2c7e039 100644 --- a/docs/src/pages/vue-components/field.md +++ b/docs/src/pages/vue-components/field.md @@ -74,6 +74,15 @@ The `square` prop only makes sense along with Filled, Outlined and Standout desi ## Basic features +### Tag Wrapper +Allowing selection between `label` for form control fields and `div` for custom components with a `tag` property, enhances form functionality, and accessibility. + +::: warning +If using `label`, ensure it is associated with form control fields and link the generated ID to the form field to avoid an accessibility violation. +::: + + + ### Clearable As a helper, you can use `clearable` prop so user can reset model to `null` through an appended icon.