mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-05 05:28:20 +08:00
30 lines
877 B
Markdown
30 lines
877 B
Markdown
---
|
|
category: Components
|
|
type: Other
|
|
cols: 2
|
|
title: Anchor
|
|
---
|
|
|
|
Hyperlinks to scroll on one page.
|
|
|
|
## When To Use
|
|
|
|
For displaying anchor hyperlinks on page, and jump 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 | |
|