diff --git a/.changeset/nine-cycles-invent.md b/.changeset/nine-cycles-invent.md new file mode 100644 index 00000000000..5cfc529db46 --- /dev/null +++ b/.changeset/nine-cycles-invent.md @@ -0,0 +1,5 @@ +--- +'@shopify/polaris': patch +--- + +Deprecated `external` prop in `Link` component diff --git a/polaris-react/src/components/Link/Link.tsx b/polaris-react/src/components/Link/Link.tsx index 1535ff01456..32da4103e6f 100644 --- a/polaris-react/src/components/Link/Link.tsx +++ b/polaris-react/src/components/Link/Link.tsx @@ -14,7 +14,9 @@ export interface LinkProps { url?: string; /** The content to display inside the link */ children?: React.ReactNode; - /** Makes the link open in a new tab */ + /** Makes the link open in a new tab + * @deprecated use `target` set to `_blank` instead + */ external?: boolean; /** Where to display the url */ target?: Target;