You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(components): [DSYS-194] add description and errorMessage props to field components
Introduces a shared renderFieldHelpers() helper and adds ergonomic
`description`/`errorMessage` props to TextField, NumberField, SearchField,
Select, ComboBox, RadioGroup, CheckboxGroup, DateField, and TimeField.
The props render the React Aria description slot and FieldError internally,
matching the Figma library's flat `description` property and resolving the
Code Connect drift. Additive and non-breaking: existing slotted children
keep working.
Co-authored-by: Cursor <cursoragent@cursor.com>
Add ergonomic `description` and `errorMessage` props to field components: `TextField`, `NumberField`, `SearchField`, `Select`, `ComboBox`, `RadioGroup`, `CheckboxGroup`, `DateField`, and `TimeField`.
6
+
7
+
These render the React Aria `description` slot (`<Text slot="description">`) and `FieldError` internally, matching the Figma library's flat `description` property and resolving the Code Connect drift. The change is additive and non-breaking: passing helper text as `<Text slot="description">` / `<FieldError>` children remains fully supported.
0 commit comments