mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-30 06:09:34 +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
886 B
886 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 | string|ReactNode |