mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-02 07:39:36 +08:00
77b78a9389
* Unify name of ReactNode type in document * Lowser all string type name * Lowercase all number type name * Lowercase all boolean type name * Unify array type * Lowercase all object type name * Unify mutilple types
30 lines
886 B
Markdown
30 lines
886 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 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 | string\|ReactNode | |
|