mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-29 21:59:41 +08:00
0062867274
* new Layout Component (#4087) * change Anchor type * new Layout * Component update && add snap * Revert "new Layout Component" (#4131) * add Layout (#4169) * add Layout * update * fix snapshot * Improve layout component 1. update demo code 2. drop `position` of Sider 3. improve demo style
879 B
879 B
category | type | cols | title |
---|---|---|---|
Components | Other | 2 | Anchor |
Hyperlinks to scroll on one page.
When To Use
For displaying anchor hyperlinks on page and jumping between them.
API
Anchor Props
Property | Description | Type | Default |
---|---|---|---|
offsetTop | Pixels to offset from top when calculating position of scroll | Number | 0 |
offsetBottom | Pixels to offset from bottom when calculating position of scroll | Number | - |
bounds | Bounding distance of anchor area | Number | 5(px) |
Link Props
Property | Description | Type | Default |
---|---|---|---|
href | target of hyperlink | String | |
title | content of hyperlink | React.Node |