Skip to content

Commit 1de3bc3

Browse files
authored
docs: rename 'innerRef' to 'ref' and move it up
1 parent 00e6a8f commit 1de3bc3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,14 @@ export const Heading: <E extends React.ElementType = typeof defaultElement>(
100100
) => React.ReactElement | null = React.forwardRef(
101101
<E extends React.ElementType = typeof defaultElement>(
102102
{ color, style, ...restProps }: HeadingProps<E>,
103-
innerRef: typeof restProps.ref
103+
ref: typeof restProps.ref
104104
) => {
105105
return (
106106
<Box
107107
as={defaultElement}
108+
ref={ref}
108109
style={{ color, ...style }}
109110
{...restProps}
110-
ref={innerRef}
111111
/>
112112
);
113113
}

0 commit comments

Comments
 (0)