Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 65de4b9

Browse files
committed
Rebuild docs
1 parent c7894c8 commit 65de4b9

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

‎README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ for it to actually scroll. Apply that style as you would any other element, with
105105
<Overflow style={{ maxHeight: 500 }}>...</Overflow>
106106
```
107107

108-
Example with styled-components:
108+
Usage with styled-components:
109109

110110
```jsx
111111
const MyContainer = styled(Overflow)`
@@ -114,7 +114,8 @@ const MyContainer = styled(Overflow)`
114114
```
115115

116116
Any remaining props beyond those documented below will be passed along to the
117-
underlying DOM element. Use this to pass `className`, `style`, etc.
117+
underlying DOM element. Use this to pass `className`, `style`, or any other
118+
native attribute.
118119

119120
#### Props
120121

‎src/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,17 @@ const emptyStyle = {};
8484
* </Overflow>
8585
* ```
8686
*
87+
* Usage with styled-components:
88+
*
8789
* ```jsx
8890
* const MyContainer = styled(Overflow)`
8991
* max-height: 500px;
9092
* `;
9193
* ```
9294
*
9395
* Any remaining props beyond those documented below will be passed along to the
94-
* underlying DOM element. Use this to pass `className`, `style`, etc.
96+
* underlying DOM element. Use this to pass `className`, `style`, or any other
97+
* native attribute.
9598
*/
9699
export default function Overflow({
97100
children,

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /