Skip to content

Commit

Permalink
Merge pull request #641 from vrk-kpa/fix/link-styleguidist-page
Browse files Browse the repository at this point in the history
[Fix] Link's styleguidist page
  • Loading branch information
riitasointi authored Jun 28, 2022
2 parents eeb9be4 + a8a45ca commit 2ffd6b9
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions src/core/Link/Link/Link.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,24 +61,6 @@ import { ExternalLink } from 'suomifi-ui-components';
</>;
```

### Change component for the link

```js
import { Link } from 'suomifi-ui-components';

const Component = ({ children, ...passProps }) => (
<a {...passProps}>foo {children} bar</a>
);

<Link
className="test-classname"
href="https://www.com/"
asProp={Component}
>
Testing
</Link>;
```

### Router link

This component is mainly intended to be used with external libraries/frameworks.
Expand All @@ -97,7 +79,7 @@ const Component = ({ children, ...passProps }) => (
<>
<RouterLink
asComponent={Component}
href="https://ironmaiden.com"
href="https://suomi.fi"
target="_blank"
>
Testing
Expand Down

0 comments on commit 2ffd6b9

Please sign in to comment.