Open
Description
Provide a general summary of the issue here
<Tab id={value}>
accepts Key
(string and number) while <TabPanel id={value}>
only accepts string.
🤔 Expected Behavior?
<Tab>
type is defined as:
react-spectrum/packages/react-aria-components/src/Tabs.tsx
Lines 46 to 48 in c3afbc4
I expect to be able to use number as id
for <TabPanel>
as well.
😯 Current Behavior
Trying to use number as id
for <TabPanel>
causes a type error:

Due to <TabPanel>
type defined as:
react-spectrum/packages/@react-types/shared/src/dom.d.ts
Lines 58 to 63 in c3afbc4
💁 Possible Solution
export interface TabPanelProps extends AriaTabPanelProps, RenderProps<TabPanelRenderProps> {
+ /** The unique id of the tab. */
+ id?: Key,
🔦 Context
No response
🖥️ Steps to Reproduce
Version
What browsers are you seeing the problem on?
Other
If other, please specify.
No response
What operating system are you using?
macOS
🧢 Your Company/Team
No response
🕷 Tracking Issue
No response
Metadata
Metadata
Assignees
Labels
No labels