Skip to content

Commit

Permalink
Enhance OuiLink documentation
Browse files Browse the repository at this point in the history
Signed-off-by: Willie Hung <willie880201044@gmail.com>
  • Loading branch information
willie-hung committed Dec 12, 2023
1 parent a17c839 commit 1722410
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src-docs/src/views/link/link.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

import React from 'react';

import { OuiCode, OuiLink, OuiText } from '../../../../src/components';
import { OuiCode, OuiLink, OuiText, OuiIcon } from '../../../../src/components';

export default () => (
<OuiText>
Expand All @@ -28,7 +28,9 @@ export default () => (
<OuiLink href="https://oui.opensearch.org/latest/" external>
link
</OuiLink>{' '}
has the <OuiCode>external</OuiCode> prop set to true.
has the <OuiCode>external</OuiCode> prop set to true. A pop-out icon{' '}
<OuiIcon type="popout" size="s" /> will be automatically rendered to
indicate that it leads to an external resource.
</p>
<p>
This link is actually a <OuiLink onClick={() => {}}>button</OuiLink> with
Expand Down

0 comments on commit 1722410

Please sign in to comment.