Skip to content

Commit

Permalink
docs: Add docs of link types to README
Browse files Browse the repository at this point in the history
  • Loading branch information
elecdeer committed Jul 20, 2024
1 parent 5cf1933 commit 873c6c2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ If `undefined` is returned, the link will not be added.
- `label`: The label of the link.
- `href`: The URL of the link.
- `icon`: (Optional) The icon name in [@storybook/icons](https://main--64b56e737c0aeefed9d5e675.chromatic.com/?path=/docs/introduction--docs)
- `type`: (Optional) The type of the link.
- `"link"`: The link will be opened in the same tab.
- `"linkBlank"`: (default) The link will be opened in a new tab. Added target="\_blank" to the link.
- `"copy"`: The link will be copied to the clipboard.
- `order`: (Optional) When order is specified, it will be sorted in ascending order. The default value is `0`.

### Preset settings provided by the addon
Expand Down

0 comments on commit 873c6c2

Please sign in to comment.