Skip to content

Support 'auto' labelWidth measurement

Choose a tag to compare

@NicolasDevil NicolasDevil released this 14 Aug 05:48
· 3 commits to main since this release
6b69b6b

Add support for labelWidth = 'auto' which precisely measures label text widths via a hidden probe element. Implement measureLabelWidth and stripHtml utilities, update types to allow 'auto', and wire DOM measurement and caching in src/formkit.vue (probe element, watcher, onMounted font-ready, required-asterisk compensation, batched DOM writes)