You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
---
|
|
|
|
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 | |
|