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.

31 lines
879 B

8 years ago
---
category: Components
type: Other
cols: 1
8 years ago
title: Anchor
---
A hyperlink to a location on same page.
8 years ago
## When To Use
For displaying anchor hyperlink on page, and jump between then.
8 years ago
## API
### Anchor Props
8 years ago
| 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
8 years ago
| Property | Description | Type | Default |
|-------------|----------------|--------------------|--------------|
| href | target of hyperlink | String | |
| title | content of hyperlink | String | |
8 years ago