Skip to content

Commit

Permalink
Enhance OuiLink documentation (#1182)
Browse files Browse the repository at this point in the history
Signed-off-by: Willie Hung <[email protected]>
  • Loading branch information
willie-hung authored Jul 12, 2024
1 parent 66021e0 commit f9f0385
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 f9f0385

Please sign in to comment.