mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 21:19:37 +08:00
878 B
878 B
category | type | cols | title |
---|---|---|---|
Components | Other | 1 | Anchor |
A hyperlink to a location on same page.
When To Use
For displaying anchor hyperlink 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 | String |