Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import * as React from 'react';
import { Link } from '../index';

export const Appearance = () => <Link appearance="subtle">Subtle link</Link>;
export const Appearance = () => (
<Link appearance="subtle" href="https://www.bing.com">
Subtle link
</Link>
);
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import * as React from 'react';
import { Link, LinkProps } from '../index';

export const Default = (props: LinkProps) => <Link {...props}>This is a link</Link>;
export const Default = (props: LinkProps & { as?: 'a' }) => (
<Link href="https://www.bing.com" {...props}>
This is a link
</Link>
);
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import * as React from 'react';
import { Link } from '../index';

export const Disabled = () => <Link disabled>Disabled link</Link>;
export const Disabled = () => (
<Link disabled href="https://www.bing.com">
Disabled link
</Link>
);
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as React from 'react';
import { Link } from '../index';

export const DisabledFocusable = () => (
<Link inline disabled disabledFocusable>
<Link inline disabled disabledFocusable href="https://www.bing.com">
Disabled but still focusable
</Link>
);
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ import { Link } from '../index';

export const Inline = () => (
<div>
This is an <Link inline>inline link</Link> used alongside other text
This is an
<Link href="https://www.bing.com" inline>
inline link
</Link>
used alongside other text
</div>
);