[GH-ISSUE #43] Missing ref and key props types from react elements #11

Closed
opened 2026-03-02 23:43:50 +03:00 by kerem · 0 comments
Owner

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 ref and key props, causing TypeScript compilation errors when trying to use these props.

Proposed Solution

Extract a ReactProps<TRef> utility type that includes only ref and key props (without children) and apply it to the affected component types, while keeping ContainerProps for components that need children.

Additional Context

I have already implemented and tested a fix for this issue locally. Happy to submit a PR if this approach sounds good.

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 `ref` and `key` props, causing TypeScript compilation errors when trying to use these props. ### Proposed Solution Extract a `ReactProps<TRef>` utility type that includes only `ref` and `key` props (without `children`) and apply it to the affected component types, while keeping `ContainerProps` for components that need `children`. ### Additional Context I have already implemented and tested a fix for this issue locally. Happy to submit a PR if this approach sounds good.
kerem closed this issue 2026-03-02 23:43:50 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/opentui#11
No description provided.