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
I'm interested in adding the ability to provide custom props to input elements created within Radix components. I'm also willing to do the work to make this happen, but wanted to first check the likelihood of this being accepted as a feature before putting too much time into implementing it.
Overview
I'm introducing Radix to an existing application that has functionality tied to the assumption that certain elements have specific attributes. I've already run into difficulty with <Checkbox> as there's no way to add custom attributes to the <input> created by <BubbleInput> , and similar difficulty with <TextField> (which ofc is part of the theme repo).
I'd like for <Checkbox> and other components with similar limitations to have an inputProps prop that accepts an object that would be passed to the <input> element created within the component.
It would make it much easier for me to integrate Radix UI into Drupal core (I am one of Drupal's maintainers/committers)
I suspect this finer level of control would have many benefits, but one that comes to mind is it would make it easier to fix surprise accessibility issues without having to make changes to Radix itself.
The text was updated successfully, but these errors were encountered:
Feature request
I'm interested in adding the ability to provide custom props to input elements created within Radix components. I'm also willing to do the work to make this happen, but wanted to first check the likelihood of this being accepted as a feature before putting too much time into implementing it.
Overview
I'm introducing Radix to an existing application that has functionality tied to the assumption that certain elements have specific attributes. I've already run into difficulty with
<Checkbox>
as there's no way to add custom attributes to the<input>
created by<BubbleInput>
, and similar difficulty with<TextField>
(which ofc is part of the theme repo).I'd like for
<Checkbox>
and other components with similar limitations to have aninputProps
prop that accepts an object that would be passed to the<input>
element created within the component.Examples in other libraries
Example: MUI has an inputProps prop for its checkbox element
Who does this impact? Who is this for?
The text was updated successfully, but these errors were encountered: