Skip to content

Commit 93bd65f

Browse files
authored
Adding docs links in intellisense (#2024)
1 parent a9b29e8 commit 93bd65f

File tree

50 files changed

+147
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+147
-1
lines changed

docs/src/pages/[platform]/components/icon/index.page.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
title: Icon
33
description: The icon component displays simple vector graphics for use in other components like Buttons.
4+
themeSource: packages/ui/src/theme/tokens/components/icon.ts
5+
reactSource: packages/react/src/primitives/Icon/Icon.tsx
46
supportedFrameworks: react
57
---
68

docs/src/pages/[platform]/components/image/index.page.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
title: Image
33
description: The Image primitive can be used to display responsive images.
4+
themeSource: packages/ui/src/theme/tokens/components/image.ts
5+
reactSource: packages/react/src/primitives/Image/Image.tsx
46
supportedFrameworks: react
57
---
68

packages/react/src/components/Authenticator/Authenticator.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ function InitMachine({
3838
return <>{children}</>;
3939
}
4040

41+
/**
42+
* [📖 Docs](https://ui.docs.amplify.aws/react/components/authenticator)
43+
*/
4144
export function Authenticator({
4245
children,
4346
className,

packages/react/src/components/Authenticator/hooks/useAuthenticator/index.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ const useAuthenticatorService = () => {
101101
return service;
102102
};
103103

104+
/**
105+
* [📖 Docs](https://ui.docs.amplify.aws/react/components/authenticator#useauthenticator-hook)
106+
*/
104107
export const useAuthenticator = (selector?: Selector) => {
105108
const service = useAuthenticatorService();
106109

packages/react/src/components/Authenticator/withAuthenticator.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ import { Authenticator, AuthenticatorProps } from './Authenticator';
22

33
export type WithAuthenticatorOptions = Omit<AuthenticatorProps, 'children'>;
44

5+
/**
6+
* [📖 Docs](https://ui.docs.amplify.aws/react/components/authenticator)
7+
*/
58
export function withAuthenticator<Props>(
69
Component: (props?: Props) => JSX.Element,
710
options: WithAuthenticatorOptions = {}

packages/react/src/components/Geo/LocationSearch/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ type AmplifyLocationSearch = IControl & {
1919
};
2020

2121
/**
22-
* The `<LocationSearch>` component provides location search. See https://ui.docs.amplify.aws/components/geo#geocoder.
22+
* The `<LocationSearch>` component provides location search.
23+
*
24+
* [📖 Docs](https://ui.docs.amplify.aws/react/components/geo#location-search)
2325
*
2426
* @example
2527
* // Used as a map control:

packages/react/src/components/Geo/MapView/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ export type MapViewProps = Omit<MapProps, 'transformRequest'>;
1515
* [react-map-gl default Map](https://visgl.github.io/react-map-gl/docs/api-reference/map), it accepts the same
1616
* properties except `transformRequest` which is set by Amplify.
1717
*
18+
* [📖 Docs](https://ui.docs.amplify.aws/react/components/geo#mapview)
19+
*
1820
* @example
1921
* // Basic usage of MapView:
2022
* function App() {

packages/react/src/components/ThemeProvider/index.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,4 +127,7 @@ export function AmplifyProvider({
127127
);
128128
}
129129

130+
/**
131+
* [📖 Docs](https://ui.docs.amplify.aws/react/theming)
132+
*/
130133
export const ThemeProvider = AmplifyProvider;

packages/react/src/hooks/useBreakpointValue.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ import { getValueAtCurrentBreakpoint } from '../primitives/shared/responsive/uti
33
import { useBreakpoint } from '../primitives/shared/responsive/useBreakpoint';
44
import { useTheme } from './useTheme';
55

6+
/**
7+
* [📖 Docs](https://ui.docs.amplify.aws/react/theming/responsive#usebreakpointvalue)
8+
*/
69
export function useBreakpointValue<T>(
710
values: Record<string, T> | T[],
811
defaultBreakpoint?: Breakpoint

packages/react/src/hooks/useTheme.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ import {
66
AmplifyContextType,
77
} from '../components/ThemeProvider/AmplifyContext';
88

9+
/**
10+
* [📖 Docs](https://ui.docs.amplify.aws/react/theming)
11+
*/
912
export const useTheme = (): WebTheme => {
1013
const context = React.useContext(AmplifyContext);
1114
return getThemeFromContext(context);

0 commit comments

Comments
 (0)