Skip to content

feat: Add isReadOnly render prop to ComboBox and NumberField#9892

Merged
devongovett merged 1 commit intomainfrom
render-props-parity
Apr 9, 2026
Merged

feat: Add isReadOnly render prop to ComboBox and NumberField#9892
devongovett merged 1 commit intomainfrom
render-props-parity

Conversation

@devongovett
Copy link
Copy Markdown
Member

Closes #6151

Adds isReadOnly render props and data-readonly attribute to ComboBox and NumberField for parity with other components.

@rspbot
Copy link
Copy Markdown

rspbot commented Apr 8, 2026

@rspbot
Copy link
Copy Markdown

rspbot commented Apr 8, 2026

## API Changes

react-aria-components

/react-aria-components:ComboBoxRenderProps

 ComboBoxRenderProps {
   isDisabled: boolean
   isInvalid: boolean
   isOpen: boolean
+  isReadOnly: boolean
   isRequired: boolean
 }

/react-aria-components:NumberFieldRenderProps

 NumberFieldRenderProps {
   isDisabled: boolean
   isInvalid: boolean
+  isReadOnly: boolean
   isRequired: boolean
   state: NumberFieldState
 }

@devongovett devongovett added this pull request to the merge queue Apr 9, 2026
Merged via the queue into main with commit 3194ace Apr 9, 2026
29 checks passed
@devongovett devongovett deleted the render-props-parity branch April 9, 2026 00:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

field components should consistently support isReadOnly and isRequired render-props+data-attributes

5 participants