Skip to content
This repository was archived by the owner on May 6, 2022. It is now read-only.

Commit b5a29a2

Browse files
committed
fix(Link): Make children optional
1 parent 3063d1b commit b5a29a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/text/Link.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { getSize, Size } from '../utils/sizes';
88
import textStyles from './utils/textStyles';
99

1010
export interface LinkProps {
11-
readonly children: React.ReactNode;
11+
readonly children?: React.ReactNode;
1212
readonly color?: ((props: { readonly theme: ThemeProvider }) => string) | string;
1313
readonly external?: boolean;
1414
readonly href?: string | undefined;

0 commit comments

Comments
 (0)