Closed notramo closed 1 year ago
Hey, this should already be possible, since all parameters of the DOM <button>
are supported and passed to the component below.
Is this not working for you?
It works with JavaScript, but with TypeScript it throws an error.
A wild bug has appeared ❗ 🐛 I'll investigate this, thank you for reporting it!
It appears with other elements, e.g. <TextInput type="password" name="user:password"/>
also results in TS error, for both type
and name
. (At least TextInput
has a workaround with wrapperProps
, but it's not documented.)
Are you using the latest version 0.11.1?
No, somehow I missed the updates. It seems that the ^
operator in package.json
doesn't take into account versions below 1.0.
It seems to be fixed in the latest version.
Nice!
Usage example, including component, action, motion, or utility API
<Button type="submit">Submit</Button>
Possible implementation - describe how the feature can be implemented
No response
Do you want to contribute this feature and create a pull request
Yes