0.9.1-beta.99
Beta@xaui/native@0.9.1-beta.99
Patch Changes
-
65dbac6: feat(autocomplete): the field gets its label, its hint and its error
AutocompleteandComboboxhad no label. They are fields — a combobox sits on the line where aTextFieldwould — so a form using one had to label it from outside the component, which is a second column to keep in step and a label a screen reader never associates with the control.The root is now the column, the
DatePicker's shape: aViewthat stacksAutocomplete.Label, the trigger andAutocomplete.Description/.Errorwith onegap, so JSX order is screen order.Comboboxgets the same three slots under its own name — its root is theAutocomplete's, so the column comes with it, and a combobox labelled differently from the text field beside it is exactly the drift this sharing prevents.The column, the label and the help lines resolve through
textFieldReciperather than a second table, so they are theTextField's token for token.isInvalidturns the label and the descriptiondanger; it never mountsAutocomplete.Error, which stays yours to write.The trigger — and the
Combobox's input — points at the two slots througharia-labelledbyandaria-describedby, so what is announced is what the field asked for rather than only the row that happens to be chosen. Mounting the slots is all it takes; your own is still the last word.disablednow dims the column once instead of dimming the trigger a second time inside it. The root takesref,style,asChildand R14's style props for that column; the control keeps its own onAutocomplete.Trigger.