Repository navigation
1.16.2
Added
labelPlacementon every field: the label above it, on its top edge, or in place of the placeholder.topis the default and what every field drew before.notchstands the label in a gap cut out of the field's top edge, andfloatrests it where the placeholder would be until the field takes the focus or holds a value, then moves it up into that gap. TextField, NumberField, Select, Combobox, DatePicker, TimePicker, DateTimePicker, DateRangePicker, TreeSelect and ColorPicker all take it, typed as the sharedNebaLabelPlacement. A floating label travels ontopand resizes onfont-sizerather than on atransform, so it is set again at each size instead of scaled. AstartIconkeeps afloatlabel in the notch, because the icon is where it would rest. The gap is sized by the layout rather than measured, so it is right in the first frame of a server render, and a field is never narrower than the label on its edge.NebaProvidertakes it indefaultsas well, so a product sets it once.
Every release is in the changelog on the docs site and in CHANGELOG.md at this tag.