@up42/up-components 1.6.0 → 1.6.2
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.
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/types/components/Button/Button.d.ts +13 -0
- package/dist/cjs/types/components/Link/Link.d.ts +2 -2
- package/dist/esm/index.js +1 -1
- package/dist/esm/types/components/Button/Button.d.ts +13 -0
- package/dist/esm/types/components/Link/Link.d.ts +2 -2
- package/dist/index.d.ts +15 -2
- package/package.json +1 -1
|
@@ -9,6 +9,19 @@ export declare type ButtonProps = MUIGlobalOmit<Omit<MUIButtonProps, 'size' | 'c
|
|
|
9
9
|
to?: MUIButtonProps['href'];
|
|
10
10
|
}>;
|
|
11
11
|
/**
|
|
12
|
+
* ### Routing Libraries
|
|
13
|
+
* You can achieve the integration with third-party routing libraries (i.e `react-router`) with the `component` prop.
|
|
14
|
+
* You can learn more about this here: https://mui.com/guides/routing/#component-prop
|
|
15
|
+
*
|
|
16
|
+
* ```js
|
|
17
|
+
* import { Link } from '@up42/up-components'
|
|
18
|
+
* import { Link } from 'react-router-dom'
|
|
19
|
+
*
|
|
20
|
+
* <Button component={Link} to="/my-path">
|
|
21
|
+
* client-side navigation button.
|
|
22
|
+
* </Button>
|
|
23
|
+
```
|
|
24
|
+
*
|
|
12
25
|
* Documentation: https://up-components.up42.com/?path=/docs/data-entry-button--docs
|
|
13
26
|
*/
|
|
14
27
|
export declare const Button: React.ForwardRefExoticComponent<Pick<{
|
|
@@ -7,12 +7,12 @@ export declare type LinkProps<C extends React.ElementType> = MuiLinkProps<C, {
|
|
|
7
7
|
};
|
|
8
8
|
/**
|
|
9
9
|
* ### Routing Libraries
|
|
10
|
-
* You can achieve the integration with third-party routing libraries (i.e
|
|
10
|
+
* You can achieve the integration with third-party routing libraries (i.e `react-router`) with the `component` prop.
|
|
11
11
|
* You can learn more about this here: https://mui.com/guides/routing/#component-prop
|
|
12
12
|
*
|
|
13
13
|
* ```js
|
|
14
|
-
* import { Link as RouterLink } from '@reach/router'
|
|
15
14
|
* import { Link } from '@up42/up-components'
|
|
15
|
+
* import { Link as RouterLink } from 'react-router-dom'
|
|
16
16
|
*
|
|
17
17
|
* <Link component={RouterLink} to="/my-path">
|
|
18
18
|
* client-side navigation link.
|