Skip to content

Commit

Permalink
docs(TextLink): accepts html anchor attributes (#253)
Browse files Browse the repository at this point in the history
fixes #249 

* docs(TextLink): accepts html anchor attributes

* pr feedback
  • Loading branch information
nathanyoung authored Sep 28, 2020
1 parent 4aefa6a commit 06a3c17
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/TextLink/TextLink.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ or anchor tag based links.

## Props

When the `href` is set, the `TextLink` accepts all valid [HTML anchor element attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a), such as `_target`.

When `to` is set, the `TextLink` accepts all [React Router Link](https://reactrouter.com/web/api/Link) props.

<ArgsTable of={TextLink} />

## Default
Expand Down

0 comments on commit 06a3c17

Please sign in to comment.