You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
text: "Create a really detailed and powerful image. Create a really detailed and powerful image. Create a really detailed and powerful image. Create a really detailed and powerful image. Create a really detailed and powerful image. Create a really detailed and powerful image. Create a really detailed and powerful image. ",
31
-
id: "image",
32
-
},
33
-
{
34
-
text: "Help me brainstorm for an upcoming sign-off. Help me brainstorm for an upcoming sign-off. Help me brainstorm for an upcoming sign-off.",
35
-
id: "brainstorm",
36
-
},
37
-
{
38
-
text: "Summarize this long and complex PDF for me. Summarize this long and complex PDF for me. Summarize this long and complex PDF for me. Summarize this long and complex PDF for me. Summarize this long and complex PDF for me. ",
39
-
id: "summarize",
40
-
},
41
-
]}
42
-
/>
43
-
<PromptInputplaceholder="Write a prompt"value=""actionButtonIconName="send"/>
24
+
<SpaceBetweendirection="vertical"size="m">
25
+
<SupportPromptGroup
26
+
alignment="horizontal"
27
+
ariaLabel="Horizontal support prompt group"
28
+
onItemClick={({ detail })=>console.log(detail)}
29
+
items={[
30
+
{
31
+
text: "Create a really detailed and powerful image.",
32
+
id: "image",
33
+
},
34
+
{
35
+
text: "Help me brainstorm for an upcoming sign-off.",
36
+
id: "brainstorm",
37
+
},
38
+
{
39
+
text: "Summarize this long and complex PDF for me.",
40
+
id: "summarize",
41
+
},
42
+
]}
43
+
/>
44
+
45
+
<PromptInputplaceholder="Write a prompt"value=""actionButtonIconName="send"/>
<ChatBubbletype="outgoing"avatar={<ChatBubbleAvatarUser/>}ariaLabel="User at 4:23:20pm">
54
+
What can I do with Amazon S3?
58
55
</ChatBubble>
59
-
<divstyle={{marginInlineStart: "36px"}}>
60
-
<SupportPromptGroup
61
-
ariaLabel="Horizontal support prompt group"
62
-
alignment="vertical"
63
-
onItemClick={({ detail })=>console.log(detail)}
64
-
items={[
65
-
{
66
-
text: "Create a really detailed and powerful image.",
67
-
id: "image",
68
-
},
69
-
{
70
-
text: "Help me brainstorm for an upcoming sign-off.",
71
-
id: "brainstorm",
72
-
},
73
-
{
74
-
text: "Summarize this long and complex PDF for me.",
75
-
id: "summarize",
76
-
},
77
-
]}
78
-
/>
79
-
</div>
80
-
</SpaceBetween>
81
-
</div>
56
+
<SpaceBetweendirection="vertical"size="xs">
57
+
<ChatBubbleavatar={<ChatBubbleAvatarGenAI/>}type="incoming"ariaLabel="Gen AI at at 4:23:23pm">
58
+
Amazon S3 provides a simple web service interface that you can use to store and retrieve any
59
+
amount of data, at any time, from anywhere.
60
+
</ChatBubble>
61
+
<divstyle={{marginInlineStart: "36px"}}>
62
+
<SupportPromptGroup
63
+
ariaLabel="Horizontal support prompt group"
64
+
alignment="vertical"
65
+
onItemClick={({ detail })=>console.log(detail)}
66
+
items={[
67
+
{
68
+
text: "Create a really detailed and powerful image. The image should be of a mountain scene with a blue lake and green hills, with a sunset in the background. In the lake, there should be 3 whales leaping out of the water.",
69
+
id: "image",
70
+
},
71
+
{
72
+
text: "Help me brainstorm for an upcoming sign-off.",
73
+
id: "brainstorm",
74
+
},
75
+
{
76
+
text: "Summarize this long and complex PDF for me. Include a paragraph containing 3-4 sentences that capture the main ideas and overall message of the documents, a list of 5 to 10 key points from the document, and up to 3 follow-up questions that arise from the content of the document.",
77
+
id: "summarize",
78
+
},
79
+
{
80
+
text: "What questions remain unanswered after reading the document(s)? The response shall consider all current or past uploaded documents.",
81
+
id: "image",
82
+
},
83
+
]}
84
+
/>
85
+
</div>
86
+
</SpaceBetween>
87
+
</div>
82
88
83
-
<SpaceBetweendirection="vertical"size="m">
84
-
<PromptInputplaceholder="Write a prompt"value=""actionButtonIconName="send"/>
89
+
<SpaceBetweendirection="vertical"size="m">
90
+
<PromptInputplaceholder="Write a prompt"value=""actionButtonIconName="send"/>
Copy file name to clipboardExpand all lines: pages/support-prompt-group/simple.page.tsx
+14-8Lines changed: 14 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,6 @@ export default function SupportPromptPage() {
35
35
<h2>vertical group</h2>
36
36
<SupportPromptGroup
37
37
ariaLabel="Vertical support prompt group"
38
-
alignment="vertical"
39
38
onItemClick={({ detail })=>console.log(detail)}
40
39
items={[
41
40
{
@@ -60,38 +59,45 @@ export default function SupportPromptPage() {
60
59
onItemClick={({ detail })=>console.log(detail)}
61
60
items={[
62
61
{
63
-
text: "Create a really detailed and powerful image. Create a really detailed and powerful image. Create a really detailed and powerful image. Create a really detailed and powerful image. Create a really detailed and powerful image. Create a really detailed and powerful image. Create a really detailed and powerful image. ",
62
+
text: "Create a really detailed and powerful image. The image should be of a mountain scene with a blue lake and green hills, with a sunset in the background. In the lake, there should be 3 whales leaping out of the water.",
64
63
id: "image",
65
64
},
66
65
{
67
-
text: "Help me brainstorm for an upcoming sign-off. Help me brainstorm for an upcoming sign-off. Help me brainstorm for an upcoming sign-off.",
66
+
text: "Help me brainstorm for an upcoming sign-off.",
68
67
id: "brainstorm",
69
68
},
70
69
{
71
-
text: "Summarize this long and complex PDF for me. Summarize this long and complex PDF for me. Summarize this long and complex PDF for me. Summarize this long and complex PDF for me. Summarize this long and complex PDF for me. ",
70
+
text: "Summarize this long and complex PDF for me. Include a paragraph containing 3-4 sentences that capture the main ideas and overall message of the documents, a list of 5 to 10 key points from the document, and up to 3 follow-up questions that arise from the content of the document.",
72
71
id: "summarize",
73
72
},
73
+
{
74
+
text: "What questions remain unanswered after reading the document(s)? The response shall consider all current or past uploaded documents.",
75
+
id: "image",
76
+
},
74
77
]}
75
78
/>
76
79
77
80
<h2>vertical group with really long text</h2>
78
81
<SupportPromptGroup
79
82
ariaLabel="Horizontal support prompt group"
80
-
alignment="vertical"
81
83
onItemClick={({ detail })=>console.log(detail)}
82
84
items={[
83
85
{
84
-
text: "Create a really detailed and powerful image. Create a really detailed and powerful image. Create a really detailed and powerful image. Create a really detailed and powerful image. Create a really detailed and powerful image. Create a really detailed and powerful image. Create a really detailed and powerful image. ",
86
+
text: "Create a really detailed and powerful image. The image should be of a mountain scene with a blue lake and green hills, with a sunset in the background. In the lake, there should be 3 whales leaping out of the water.",
85
87
id: "image",
86
88
},
87
89
{
88
-
text: "Help me brainstorm for an upcoming sign-off. Help me brainstorm for an upcoming sign-off. Help me brainstorm for an upcoming sign-off.",
90
+
text: "Help me brainstorm for an upcoming sign-off.",
89
91
id: "brainstorm",
90
92
},
91
93
{
92
-
text: "Summarize this long and complex PDF for me. Summarize this long and complex PDF for me. Summarize this long and complex PDF for me. Summarize this long and complex PDF for me. Summarize this long and complex PDF for me. ",
94
+
text: "Summarize this long and complex PDF for me. Include a paragraph containing 3-4 sentences that capture the main ideas and overall message of the documents, a list of 5 to 10 key points from the document, and up to 3 follow-up questions that arise from the content of the document.",
93
95
id: "summarize",
94
96
},
97
+
{
98
+
text: "What questions remain unanswered after reading the document(s)? The response shall consider all current or past uploaded documents.",
0 commit comments