mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-25 04:55:58 +03:00
[GH-ISSUE #43] Missing ref and key props types from react elements #11
Labels
No labels
bug
core
documentation
feature
good first issue
help wanted
pull-request
question
react
solid
tmux
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/opentui#11
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @bhushan6 on GitHub (Aug 19, 2025).
Original GitHub issue: https://github.com/anomalyco/opentui/issues/43
Description
The input, select, tab-select, box, group and text components don't support standard React
refandkeyprops, causing TypeScript compilation errors when trying to use these props.Proposed Solution
Extract a
ReactProps<TRef>utility type that includes onlyrefandkeyprops (withoutchildren) and apply it to the affected component types, while keepingContainerPropsfor components that needchildren.Additional Context
I have already implemented and tested a fix for this issue locally. Happy to submit a PR if this approach sounds good.