@up42/up-components 2.12.0 → 2.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3,7 +3,14 @@ import { LinkProps as MuiLinkProps } from '@mui/material';
|
|
|
3
3
|
export declare type LinkProps<C extends React.ElementType> = MuiLinkProps<C, {
|
|
4
4
|
component?: C;
|
|
5
5
|
}> & {
|
|
6
|
+
/**
|
|
7
|
+
* Determines whether to hide the icon.
|
|
8
|
+
*/
|
|
6
9
|
hideIcon?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Determines whether to open the link in the same tab for external links.
|
|
12
|
+
*/
|
|
13
|
+
openInSameTab?: boolean;
|
|
7
14
|
};
|
|
8
15
|
/**
|
|
9
16
|
* ### Routing Libraries
|
|
@@ -21,4 +28,4 @@ export declare type LinkProps<C extends React.ElementType> = MuiLinkProps<C, {
|
|
|
21
28
|
*
|
|
22
29
|
* Documentation: https://up-components.up42.com/?path=/docs/navigation-link--docs
|
|
23
30
|
*/
|
|
24
|
-
export declare const Link: <C extends React.ElementType<any>>({ children, underline, hideIcon, ...props }: LinkProps<C>) => JSX.Element;
|
|
31
|
+
export declare const Link: <C extends React.ElementType<any>>({ children, underline, hideIcon, openInSameTab, ...props }: LinkProps<C>) => JSX.Element;
|