Skip to content

Commit 3e941a4

Browse files
authored
Merge pull request #23 from balazsmatepetro/fix-typo-in-using-with-css-in-js-libs-docs
Fix typo in using with css in js libs docs
2 parents 912964d + 25dfdc1 commit 3e941a4

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/large-pans-mix.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@component-driven/react-focus-within': patch
3+
---
4+
5+
Fix typo in 'Using with CSS-in-JS libs' section for '@component-driven/react-focus-within' package.

packages/react-focus-within/Readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ If you want to react to the focus change, use function as a children pattern. Wh
6464

6565
## Using with CSS-in-JS libs
6666

67-
If you're using a CSS-in-JS library like [styled-components](https://www.styled-components.com) you need to pass a ref using `innerRef` prop. You can use `getRef` function from the parameters.
67+
If you're using a CSS-in-JS library like [styled-components](https://www.styled-components.com) you need to pass a ref using `ref` prop. You can use `getRef` function from the parameters.
6868

6969
```js static
7070
;({ focused: Boolean, getRef: Function }) => React.Element
@@ -91,7 +91,7 @@ const StyledBox = styled('div')`
9191
}}
9292
>
9393
{({ focused, getRef }) => (
94-
<StyledBox innerRef={getRef} focused={focused}>
94+
<StyledBox ref={getRef} focused={focused}>
9595
<input
9696
type="text"
9797
placeholder="Click to activate first input"

0 commit comments

Comments
 (0)