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
They keyword Mod allows me to pass a dict/string that is then translated into a data- variable on the input.
The problem is that the data- variable gets created on the root element rather than the input which means that the data- prop is unusable for a patternmatching callback.
Would be nice if one could add another keyword, something like inputMod, that functions like the Mod keyword but for the actual Input element.
The text was updated successfully, but these errors were encountered:
Lets see, ill try.
Mod allows one to pass something akin to {"validation-key":"123-2243"} which gets translated into data-validation-key="123-2243" on the root element of a input.
I would like a prop that does the same thing, but on the actual Input. If we call the prop inputMod it could look like this: dmc.TextInput(id="username", inputMod={"validation-key":"username-validation"})
The idea is that we can create data-XXX variables on the actual input element rather than only the root element.
AnnMarieW
changed the title
Create a Prop that passes down to the Input component.
[Feature Request] Create a Prop that passes down to the Input component.
Nov 6, 2024
Rather than having a specific inputMod prop, it might be better to have an inputWrapperProps that enables passing any valid prop to the Input component. (similar to the wrapperProps that passes props to the root)
it would be better to a have a generic inputWrapper prop so that you can add any props
They keyword Mod allows me to pass a dict/string that is then translated into a data- variable on the input.
The problem is that the data- variable gets created on the root element rather than the input which means that the data- prop is unusable for a patternmatching callback.
Would be nice if one could add another keyword, something like inputMod, that functions like the Mod keyword but for the actual Input element.
The text was updated successfully, but these errors were encountered: