@app-studio/web 0.9.39 → 0.9.43

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.
Files changed (95) hide show
  1. package/dist/bot/Bot.d.ts +15 -0
  2. package/dist/bot/Cache.d.ts +13 -0
  3. package/dist/bot/Config.d.ts +13 -0
  4. package/dist/bot/ContentFetcher.d.ts +9 -0
  5. package/dist/bot/DocuCode.d.ts +19 -0
  6. package/dist/bot/FileHandler.d.ts +39 -0
  7. package/dist/bot/ai/AnthropicConnector.d.ts +6 -0
  8. package/dist/bot/ai/GeminiConnector.d.ts +7 -0
  9. package/dist/bot/ai/GroqConnector.d.ts +7 -0
  10. package/dist/bot/ai/HuggingFaceConnector.d.ts +6 -0
  11. package/dist/bot/ai/OpenAIConnector.d.ts +11 -0
  12. package/dist/bot/ai/ReplicateConnector.d.ts +7 -0
  13. package/dist/bot/ai/SambaNovaConnector.d.ts +6 -0
  14. package/dist/bot/ai/ai.config.d.ts +12 -0
  15. package/dist/bot/ai/ai.service.d.ts +36 -0
  16. package/dist/bot/data.d.ts +19 -0
  17. package/dist/bot/extractors.d.ts +8 -0
  18. package/dist/bot/index.d.ts +1 -0
  19. package/dist/bot/prompt/1-project.d.ts +1 -0
  20. package/dist/bot/prompt/2-response.d.ts +1 -0
  21. package/dist/bot/prompt/3-comment.d.ts +1 -0
  22. package/docs/components/Accordion.mdx +74 -121
  23. package/docs/components/Alert.mdx +18 -69
  24. package/docs/components/AspectRatio.mdx +11 -9
  25. package/docs/components/AudioInput.mdx +43 -0
  26. package/docs/components/Avatar.mdx +17 -42
  27. package/docs/components/Background.mdx +99 -491
  28. package/docs/components/Badge.mdx +37 -122
  29. package/docs/components/Button.mdx +71 -123
  30. package/docs/components/Calendar.mdx +7 -7
  31. package/docs/components/Card.mdx +238 -281
  32. package/docs/components/Carousel.mdx +88 -315
  33. package/docs/components/Center.mdx +22 -22
  34. package/docs/components/Chart.mdx +171 -26
  35. package/docs/components/ChatInput.mdx +327 -275
  36. package/docs/components/Checkbox.mdx +3 -5
  37. package/docs/components/ColorInput.mdx +10 -10
  38. package/docs/components/ColorPicker.mdx +452 -0
  39. package/docs/components/ComboBox.mdx +14 -14
  40. package/docs/components/Command.mdx +140 -188
  41. package/docs/components/ContextMenu.mdx +47 -171
  42. package/docs/components/CookieConsent.mdx +53 -0
  43. package/docs/components/CountryPicker.mdx +10 -10
  44. package/docs/components/DatePicker.mdx +4 -4
  45. package/docs/components/DragAndDrop.mdx +279 -463
  46. package/docs/components/Drawer.mdx +401 -100
  47. package/docs/components/DropdownMenu.mdx +37 -155
  48. package/docs/components/EmojiPicker.mdx +84 -0
  49. package/docs/components/File.mdx +130 -4
  50. package/docs/components/Flow.mdx +3 -3
  51. package/docs/components/Form.mdx +4 -4
  52. package/docs/components/Formik.mdx +41 -41
  53. package/docs/components/Gradient.mdx +355 -178
  54. package/docs/components/Horizontal.mdx +1 -2
  55. package/docs/components/HoverCard.mdx +57 -125
  56. package/docs/components/Icon.mdx +10 -10
  57. package/docs/components/KanbanBoard.mdx +12 -12
  58. package/docs/components/Label.mdx +8 -8
  59. package/docs/components/Link.mdx +19 -27
  60. package/docs/components/Loader.mdx +224 -407
  61. package/docs/components/Menubar.mdx +71 -67
  62. package/docs/components/Message.mdx +211 -526
  63. package/docs/components/Modal.mdx +351 -475
  64. package/docs/components/NavigationMenu.mdx +8 -8
  65. package/docs/components/OTPInput.mdx +194 -0
  66. package/docs/components/Pagination.mdx +451 -107
  67. package/docs/components/Password.mdx +8 -8
  68. package/docs/components/ProgressBar.mdx +460 -0
  69. package/docs/components/Resizable.mdx +103 -102
  70. package/docs/components/Select.mdx +5 -5
  71. package/docs/components/Separator.mdx +11 -98
  72. package/docs/components/ShareButton.mdx +29 -0
  73. package/docs/components/Sidebar.mdx +70 -131
  74. package/docs/components/Slider.mdx +99 -185
  75. package/docs/components/StatusIndicator.mdx +373 -0
  76. package/docs/components/Switch.mdx +3 -3
  77. package/docs/components/Table.mdx +25 -105
  78. package/docs/components/Tabs.mdx +40 -143
  79. package/docs/components/TagInput.mdx +32 -32
  80. package/docs/components/Text.mdx +3 -3
  81. package/docs/components/TextArea.mdx +9 -9
  82. package/docs/components/TextField.mdx +17 -17
  83. package/docs/components/Title.mdx +267 -525
  84. package/docs/components/Toast.mdx +65 -142
  85. package/docs/components/Toggle.mdx +34 -46
  86. package/docs/components/ToggleGroup.mdx +29 -50
  87. package/docs/components/Tooltip.mdx +500 -137
  88. package/docs/components/Tree.mdx +4 -4
  89. package/docs/components/Uploader.mdx +205 -351
  90. package/docs/components/Vertical.mdx +22 -22
  91. package/package.json +1 -1
  92. package/dist/components/AuthGuard/AuthGuard.d.ts +0 -35
  93. package/dist/components/AuthGuard/index.d.ts +0 -1
  94. package/docs/adk-components.md +0 -319
  95. package/docs/adk-quick-start.md +0 -268
@@ -1,140 +1,72 @@
1
1
  # HoverCard
2
2
 
3
- A floating card that appears when hovering over a trigger element. Supports configurable open and close delays for a smoother user experience.
3
+ Displays rich content on hover, with customizable trigger and content presentation.
4
4
 
5
5
  ### **Import**
6
- ```tsx
7
- import { HoverCard } from '@app-studio/web';
8
- ```
9
-
10
- ### **Default**
11
6
  ```tsx
12
- import React from 'react';
13
- import { HoverCard } from '../HoverCard';
14
- import { Button } from '../../Button/Button';
15
- import { Text } from 'app-studio';
16
-
17
- export const DefaultHoverCard = () => {
18
- return (
19
- <HoverCard>
20
- <HoverCard.Trigger>
21
- <Button>Hover Me</Button>
22
- </HoverCard.Trigger>
23
- <HoverCard.Content>
24
- <Text>
25
- The React Framework – created and maintained by @vercel.
26
- </Text>
27
- </HoverCard.Content>
28
- </HoverCard>
29
- );
30
- };
7
+ import { HoverCard } from '@app-studio/web';
31
8
  ```
32
9
 
33
- ### **Positioning**
34
- You can control the position of the HoverCard content using the `side` and `align` props.
35
-
36
- ```tsx
37
- import React from 'react';
38
- import { HoverCard } from '../HoverCard';
39
- import { Button } from '../../Button/Button';
40
- import { Text } from 'app-studio';
41
-
42
- export const PositionedHoverCard = () => {
43
- return (
44
- <HoverCard>
45
- <HoverCard.Trigger>
46
- <Button>Hover Me</Button>
47
- </HoverCard.Trigger>
48
- <HoverCard.Content side="top" align="center">
49
- <Text>
50
- This content appears above the trigger.
51
- </Text>
52
- </HoverCard.Content>
53
- </HoverCard>
54
- );
55
- };
56
- ```
57
-
58
- ### **Custom Styling**
59
- You can customize the appearance of the HoverCard using the `views` prop.
60
-
61
- ```tsx
62
- import React from 'react';
63
- import { HoverCard } from '../HoverCard';
64
- import { Button } from '../../Button/Button';
65
- import { Text } from 'app-studio';
66
-
67
- export const StyledHoverCard = () => {
68
- return (
69
- <HoverCard>
70
- <HoverCard.Trigger>
71
- <Button variant="outline">Custom Styled HoverCard</Button>
72
- </HoverCard.Trigger>
73
- <HoverCard.Content
74
- views={{
75
- container: {
76
- backgroundColor: 'color.blue',
77
- color: 'color.white',
78
- borderRadius: '8px',
79
- padding: '16px',
80
- },
81
- }}
82
- >
83
- <Text color="white">
84
- This HoverCard has custom styling with a primary background color.
85
- </Text>
86
- </HoverCard.Content>
87
- </HoverCard>
88
- );
89
- };
90
- ```
91
-
92
- ### **Delay Options**
93
- You can control the timing of when the HoverCard opens and closes using the `openDelay` and `closeDelay` props.
94
-
10
+ ### **Default**
95
11
  ```tsx
96
12
  import React from 'react';
97
- import { HoverCard } from '../HoverCard';
98
- import { Button } from '../../Button/Button';
99
- import { Text } from 'app-studio';
13
+ import { HoverCard } from '@app-studio/web';
14
+ import { Text, Vertical, View } from 'app-studio';
15
+ import { Button } from '@app-studio/web';
100
16
 
101
- export const DelayedHoverCard = () => {
17
+ export const DefaultHoverCard = () => {
102
18
  return (
103
- <HoverCard openDelay={100} closeDelay={1000}>
104
- <HoverCard.Trigger>
105
- <Button>Hover Me</Button>
106
- </HoverCard.Trigger>
107
- <HoverCard.Content>
108
- <Text>
109
- This card opens quickly (100ms) but stays open longer (1000ms) after you move away.
110
- </Text>
111
- </HoverCard.Content>
112
- </HoverCard>
19
+ <Vertical gap={20} width="100%" maxWidth={400}>
20
+ <View>
21
+ <Text marginBottom={10}>Default HoverCard</Text>
22
+ <HoverCard>
23
+ <HoverCard.Trigger>
24
+ <Button>Hover Me</Button>
25
+ </HoverCard.Trigger>
26
+ <HoverCard.Content>
27
+ <Text>
28
+ The React Framework – created and maintained by @vercel.
29
+ </Text>
30
+ </HoverCard.Content>
31
+ </HoverCard>
32
+ </View>
33
+
34
+ <View>
35
+ <Text marginBottom={10}>HoverCard with different positions</Text>
36
+ <HoverCard>
37
+ <HoverCard.Trigger>
38
+ <Button>Hover for Top Position</Button>
39
+ </HoverCard.Trigger>
40
+ <HoverCard.Content side="top">
41
+ <Text>This content appears above the trigger.</Text>
42
+ </HoverCard.Content>
43
+ </HoverCard>
44
+ </View>
45
+
46
+ <View>
47
+ <Text marginBottom={10}>HoverCard with custom styling</Text>
48
+ <HoverCard>
49
+ <HoverCard.Trigger>
50
+ <Button variant="outline">Custom Styled HoverCard</Button>
51
+ </HoverCard.Trigger>
52
+ <HoverCard.Content
53
+ views={{
54
+ container: {
55
+ backgroundColor: 'color.blue',
56
+ color: 'color.white',
57
+ borderRadius: '8px',
58
+ padding: '16px',
59
+ },
60
+ }}
61
+ >
62
+ <Text color="white">
63
+ This HoverCard has custom styling with a primary background color.
64
+ </Text>
65
+ </HoverCard.Content>
66
+ </HoverCard>
67
+ </View>
68
+ </Vertical>
113
69
  );
114
70
  };
115
71
  ```
116
72
 
117
- ### **Using with Other Components**
118
- You can use the `asChild` prop on the Trigger to apply hover behavior directly to another component.
119
-
120
- ```tsx
121
- import React from 'react';
122
- import { HoverCard } from '../HoverCard';
123
- import { Link } from '../../Link/Link';
124
- import { Text } from 'app-studio';
125
-
126
- export const LinkHoverCard = () => {
127
- return (
128
- <HoverCard>
129
- <HoverCard.Trigger asChild>
130
- <Link to="https://example.com">example.com</Link>
131
- </HoverCard.Trigger>
132
- <HoverCard.Content>
133
- <Text>
134
- This card uses the asChild prop to apply hover behavior directly to the Link component.
135
- </Text>
136
- </HoverCard.Content>
137
- </HoverCard>
138
- );
139
- };
140
- ```
@@ -20,7 +20,7 @@ A comprehensive collection of SVG icons with consistent styling, customizable co
20
20
  ```tsx
21
21
  import React from 'react';
22
22
  import { UploadIcon, EditIcon, DeleteIcon } from '@app-studio/web';
23
- import { Horizontal } from 'app-studio';
23
+ import { Horizontal } from '@app-studio/web';
24
24
 
25
25
  export const BasicIcons = () => (
26
26
  <Horizontal gap={16}>
@@ -35,7 +35,7 @@ export const BasicIcons = () => (
35
35
  ```tsx
36
36
  import React from 'react';
37
37
  import { StarIcon } from '@app-studio/web';
38
- import { Horizontal } from 'app-studio';
38
+ import { Horizontal } from '@app-studio/web';
39
39
 
40
40
  export const IconSizes = () => (
41
41
  <Horizontal gap={16} alignItems="center">
@@ -52,7 +52,7 @@ export const IconSizes = () => (
52
52
  ```tsx
53
53
  import React from 'react';
54
54
  import { HeartIcon } from '@app-studio/web';
55
- import { Horizontal } from 'app-studio';
55
+ import { Horizontal } from '@app-studio/web';
56
56
 
57
57
  export const IconColors = () => (
58
58
  <Horizontal gap={16}>
@@ -69,7 +69,7 @@ export const IconColors = () => (
69
69
  ```tsx
70
70
  import React from 'react';
71
71
  import { StarIcon, HeartIcon, BookmarkIcon } from '@app-studio/web';
72
- import { Horizontal, Vertical, Text } from 'app-studio';
72
+ import { Horizontal, Vertical, Text } from '@app-studio/web';
73
73
 
74
74
  export const IconVariants = () => (
75
75
  <Vertical gap={16}>
@@ -94,7 +94,7 @@ export const IconVariants = () => (
94
94
  ```tsx
95
95
  import React from 'react';
96
96
  import { ArrowIcon } from '@app-studio/web';
97
- import { Horizontal, Text } from 'app-studio';
97
+ import { Horizontal, Text } from '@app-studio/web';
98
98
 
99
99
  export const IconOrientations = () => (
100
100
  <Horizontal gap={24} alignItems="center">
@@ -181,7 +181,7 @@ The icon library includes a comprehensive set of icons organized by category:
181
181
  import React from 'react';
182
182
  import { Button } from '@app-studio/web';
183
183
  import { EditIcon, DeleteIcon, SaveIcon } from '@app-studio/web';
184
- import { Horizontal } from 'app-studio';
184
+ import { Horizontal } from '@app-studio/web';
185
185
 
186
186
  export const IconButtons = () => (
187
187
  <Horizontal gap={12}>
@@ -213,7 +213,7 @@ export const IconButtons = () => (
213
213
  ```tsx
214
214
  import React from 'react';
215
215
  import { StarIcon } from '@app-studio/web';
216
- import { View } from 'app-studio';
216
+ import { View } from '@app-studio/web';
217
217
 
218
218
  export const CustomStyledIcon = () => (
219
219
  <View>
@@ -265,7 +265,7 @@ All icons inherit from the base `IconWrapper` component which extends `ViewProps
265
265
  ```tsx
266
266
  import React from 'react';
267
267
  import { MenuIcon } from '@app-studio/web';
268
- import { useBreakpoint } from 'app-studio';
268
+ import { useBreakpoint } from '@app-studio/web';
269
269
 
270
270
  export const ResponsiveIcon = () => {
271
271
  const { isMobile, isTablet, isDesktop } = useBreakpoint();
@@ -302,7 +302,7 @@ export const IconWithTooltip = () => (
302
302
  ```tsx
303
303
  import React, { useState } from 'react';
304
304
  import { HeartIcon } from '@app-studio/web';
305
- import { View } from 'app-studio';
305
+ import { View } from '@app-studio/web';
306
306
 
307
307
  export const AnimatedIcon = () => {
308
308
  const [isLiked, setIsLiked] = useState(false);
@@ -330,7 +330,7 @@ export const AnimatedIcon = () => {
330
330
  ```tsx
331
331
  import React from 'react';
332
332
  import * as Icons from '@app-studio/web';
333
- import { View, Text } from 'app-studio';
333
+ import { View, Text } from '@app-studio/web';
334
334
 
335
335
  export const IconGrid = () => {
336
336
  const iconNames = Object.keys(Icons).filter(name =>
@@ -21,8 +21,8 @@ A basic Kanban board with three columns and some cards.
21
21
 
22
22
  ```tsx
23
23
  import React, { useState } from 'react';
24
- import { KanbanBoard } from '../KanbanBoard';
25
- import { KanbanBoardColumn } from '../KanbanBoard/KanbanBoard.props';
24
+ import { KanbanBoard } from '@app-studio/web';
25
+ import { KanbanBoardColumn } from '@app-studio/web';
26
26
 
27
27
  export const DefaultKanbanBoard = () => {
28
28
  const [columns, setColumns] = useState<KanbanBoardColumn[]>([
@@ -61,9 +61,9 @@ Customize how cards are displayed using the `renderCard` prop. This is useful fo
61
61
 
62
62
  ```tsx
63
63
  import React, { useState } from 'react';
64
- import { KanbanBoard } from '../KanbanBoard';
65
- import { KanbanBoardColumn, KanbanBoardCard } from '../KanbanBoard/KanbanBoard.props';
66
- import { View, Text, Horizontal } from 'app-studio';
64
+ import { KanbanBoard } from '@app-studio/web';
65
+ import { KanbanBoardColumn, KanbanBoardCard } from '@app-studio/web';
66
+ import { View, Text, Horizontal } from '@app-studio/web';
67
67
 
68
68
  export const CustomRenderKanbanBoard = () => {
69
69
  const [columns, setColumns] = useState<KanbanBoardColumn[]>([
@@ -129,10 +129,10 @@ Use `renderColumnHeader` to create a custom header, for example to add an "Add C
129
129
 
130
130
  ```tsx
131
131
  import React, { useState } from 'react';
132
- import { KanbanBoard } from '../KanbanBoard';
133
- import { Button } from '../Button';
134
- import { KanbanBoardColumn, KanbanBoardCard } from '../KanbanBoard/KanbanBoard.props';
135
- import { View, Text, Horizontal } from 'app-studio';
132
+ import { KanbanBoard } from '@app-studio/web';
133
+ import { Button } from '@app-studio/web';
134
+ import { KanbanBoardColumn, KanbanBoardCard } from '@app-studio/web';
135
+ import { View, Text, Horizontal } from '@app-studio/web';
136
136
 
137
137
  export const CustomHeaderKanbanBoard = () => {
138
138
  const [columns, setColumns] = useState<KanbanBoardColumn[]>([
@@ -174,9 +174,9 @@ You can implement inline editing of card titles by using the `onCardTitleChange`
174
174
 
175
175
  ```tsx
176
176
  import React, { useState } from 'react';
177
- import { KanbanBoard } from '../KanbanBoard';
178
- import { KanbanBoardColumn, KanbanBoardCard } from '../KanbanBoard/KanbanBoard.props';
179
- import { Input, Text } from 'app-studio';
177
+ import { KanbanBoard } from '@app-studio/web';
178
+ import { KanbanBoardColumn, KanbanBoardCard } from '@app-studio/web';
179
+ import { Input, Text } from '@app-studio/web';
180
180
 
181
181
  export const EditableKanbanBoard = () => {
182
182
  const [columns, setColumns] = useState<KanbanBoardColumn[]>([
@@ -12,7 +12,7 @@ A semantic text element designed for form labels and descriptive text with compr
12
12
  import React from 'react';
13
13
  import { Label } from '@app-studio/web';
14
14
  import { TextField } from '@app-studio/web';
15
- import { Vertical } from 'app-studio';
15
+ import { Vertical } from '@app-studio/web';
16
16
 
17
17
  export const BasicLabel = () => (
18
18
  <Vertical gap={8}>
@@ -26,7 +26,7 @@ export const BasicLabel = () => (
26
26
  ```tsx
27
27
  import React from 'react';
28
28
  import { Label } from '@app-studio/web';
29
- import { Vertical } from 'app-studio';
29
+ import { Vertical } from '@app-studio/web';
30
30
 
31
31
  export const LabelSizes = () => (
32
32
  <Vertical gap={16}>
@@ -43,7 +43,7 @@ export const LabelSizes = () => (
43
43
  ```tsx
44
44
  import React from 'react';
45
45
  import { Label } from '@app-studio/web';
46
- import { Vertical } from 'app-studio';
46
+ import { Vertical } from '@app-studio/web';
47
47
 
48
48
  export const LabelWeights = () => (
49
49
  <Vertical gap={12}>
@@ -60,7 +60,7 @@ export const LabelWeights = () => (
60
60
  ```tsx
61
61
  import React from 'react';
62
62
  import { Label } from '@app-studio/web';
63
- import { Vertical } from 'app-studio';
63
+ import { Vertical } from '@app-studio/web';
64
64
 
65
65
  export const HeadingLabels = () => (
66
66
  <Vertical gap={16}>
@@ -78,7 +78,7 @@ export const HeadingLabels = () => (
78
78
  ```tsx
79
79
  import React from 'react';
80
80
  import { Label } from '@app-studio/web';
81
- import { Vertical } from 'app-studio';
81
+ import { Vertical } from '@app-studio/web';
82
82
 
83
83
  export const TextDecorations = () => (
84
84
  <Vertical gap={12}>
@@ -98,7 +98,7 @@ export const TextDecorations = () => (
98
98
  import React from 'react';
99
99
  import { Label } from '@app-studio/web';
100
100
  import { TextField, TextArea } from '@app-studio/web';
101
- import { Vertical, Horizontal } from 'app-studio';
101
+ import { Vertical, Horizontal } from '@app-studio/web';
102
102
 
103
103
  export const FormLabels = () => (
104
104
  <Vertical gap={20}>
@@ -131,7 +131,7 @@ export const FormLabels = () => (
131
131
  ```tsx
132
132
  import React from 'react';
133
133
  import { Label } from '@app-studio/web';
134
- import { View, Vertical } from 'app-studio';
134
+ import { View, Vertical } from '@app-studio/web';
135
135
 
136
136
  export const SectionHeaders = () => (
137
137
  <Vertical gap={24}>
@@ -172,7 +172,7 @@ export const SectionHeaders = () => (
172
172
  ```tsx
173
173
  import React from 'react';
174
174
  import { Label } from '@app-studio/web';
175
- import { Vertical } from 'app-studio';
175
+ import { Vertical } from '@app-studio/web';
176
176
 
177
177
  export const ColoredLabels = () => (
178
178
  <Vertical gap={12}>
@@ -1,42 +1,45 @@
1
1
  # Link
2
2
 
3
- Enables users to navigate to specified URLs or paths.
3
+ This component provides a navigational link that can render children, manage external links, and apply various text decoration styles.
4
4
 
5
5
  ### **Import**
6
- ```tsx
7
- import { Link } from '@app-studio/web';
8
- ```
6
+ ```tsx
7
+ import { Link } from '@app-studio/web';
8
+ ```
9
9
 
10
10
  ### **Default**
11
11
  ```tsx
12
12
  import React from 'react';
13
13
 
14
- import { Link } from '../Link';
15
-
16
- export const DefaultLink = () => <Link href="/">Default</Link>;
14
+ import { Link } from '@app-studio/web';
17
15
 
16
+ export const DefaultLink = () => <Link to="/">Default</Link>;
18
17
  ```
19
18
 
20
19
  ### **underline**
21
20
  Optional prop to define the text decoration style of the link as underline views.
22
21
 
22
+ - **Type:** `TextDecorationStyle`
23
+ - **Default:** `default`
24
+ - **Possible Values:** `default, hover, underline`
25
+
23
26
  ```tsx
24
27
  import React from 'react';
25
28
  import { Text } from 'app-studio';
26
29
  import { Vertical } from 'app-studio';
27
30
 
28
- import { Link } from '../Link';
31
+ import { Link } from '@app-studio/web';
29
32
 
30
33
  export const UnderlineLink = () => (
31
34
  <Vertical gap={10}>
32
- <Link href={'https://www.npmjs.com/package/app-studio'} underline="default">
35
+ <Link to={'https://www.npmjs.com/package/app-studio'} underline="default">
33
36
  Default
34
37
  </Link>
35
- <Link href={'https://www.npmjs.com/package/app-studio'} underline="hover">
38
+ <Link to={'https://www.npmjs.com/package/app-studio'} underline="hover">
36
39
  Hover
37
40
  </Link>
38
41
  <Link
39
- href={'https://www.npmjs.com/package/app-studio'}
42
+ to={'https://www.npmjs.com/package/app-studio'}
40
43
  underline="underline"
41
44
  color="theme.primary"
42
45
  textDecorationColor="theme.primary"
@@ -45,39 +48,28 @@ export const UnderlineLink = () => (
45
48
  </Link>
46
49
  </Vertical>
47
50
  );
48
-
49
51
  ```
50
52
 
51
53
  ### **isExternal**
52
54
  Optional boolean indicating whether the link points to an external resource. Default behavior may vary based on this value.
53
55
 
56
+ - **Type:** `boolean`
57
+ - **Default:** `false`
58
+
54
59
  ```tsx
55
60
  import React from 'react';
56
61
  import { Text } from 'app-studio';
57
62
 
58
- import { Link } from '../Link';
63
+ import { Link } from '@app-studio/web';
59
64
 
60
65
  export const ExternalLink = () => (
61
66
  <Link
62
- href={'https://www.npmjs.com/package/app-studio'}
67
+ to={'https://www.npmjs.com/package/app-studio'}
63
68
  isExternal
64
69
  iconSize="md"
65
70
  >
66
71
  <Text size="xl">External</Text>
67
72
  </Link>
68
73
  );
69
-
70
74
  ```
71
75
 
72
- ## Props
73
-
74
- | Prop | Type | Description | Default |
75
- | ------------------ | ------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ------- |
76
- | href | string | The URL or path the link points to. | |
77
- | underline | string | The text decoration style of the link ('default', 'hover', 'underline'). | |
78
- | isExternal | boolean | Whether the link points to an external resource. | false |
79
- | iconSize | Size | The size of the icon if the link is external ('xs', 'sm', 'md', 'lg', 'xl'). | 'md' |
80
- | color | string | The color of the link text. | |
81
- | textDecorationColor | string | The color of the text decoration (e.g., underline). | |
82
- | styles | CSSProperties | Optional custom styles for the link (container, text, icon). | |
83
- | children | React.ReactNode | The content of the link (typically text or an icon). | |