Skip to content

Commit cb35418

Browse files
authored
Move children from LinkProps to SpectrumLinkProps and remove LinkProps (#1763)
1 parent 41e5bf5 commit cb35418

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

packages/@react-types/link/src/index.d.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,11 @@
1313
import {AriaLabelingProps, PressEvents, StyleProps} from '@react-types/shared';
1414
import {ReactNode} from 'react';
1515

16-
export interface LinkProps extends PressEvents {
17-
/** The content to display in the link. */
18-
children: ReactNode
19-
}
20-
21-
export interface AriaLinkProps extends LinkProps, AriaLabelingProps {}
16+
export interface AriaLinkProps extends PressEvents, AriaLabelingProps { }
2217

2318
export interface SpectrumLinkProps extends AriaLinkProps, StyleProps {
19+
/** The content to display in the link. */
20+
children: ReactNode,
2421
/**
2522
* The [visual style](https://spectrum.adobe.com/page/link/#Options) of the link.
2623
* @default 'primary'

0 commit comments

Comments
 (0)