Skip to content

Commit 48ffbbd

Browse files
committed
chore: add api to readme
1 parent 5458709 commit 48ffbbd

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ ReactDom.render(
140140
| destroyInactiveTabPane | boolean | false | whether destroy inactive TabPane when change tab |
141141
| active | boolean | false | active feature of tab item |
142142
| tabKey | string | - | key linked to tab |
143+
| scrollPosition | `'start' \| 'end' \| 'center' \| 'auto'` | `'auto'` | scroll position |
143144

144145

145146
### TabPane(support in older versions)

docs/examples/scroll-position.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,16 @@ export default () => {
4949
onChange={e => setScrollPosition(e.target.value as ScrollPosition)}
5050
/>
5151
</label>
52+
<label>
53+
Auto
54+
<input
55+
type="radio"
56+
name="scrollPosition"
57+
value="auto"
58+
checked={scrollPosition === 'auto'}
59+
onChange={e => setScrollPosition(e.target.value as ScrollPosition)}
60+
/>
61+
</label>
5262
</div>
5363
<div style={{ maxWidth: 550 }}>
5464
<Tabs

0 commit comments

Comments
 (0)