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
Copy file name to clipboardExpand all lines: blazor/ai-assistview/accessibility.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,11 +7,11 @@ control: AI AssistView
7
7
documentation: ug
8
8
---
9
9
10
-
# Accessibility in Blazor AI AssistView component
10
+
# Accessibility in the Blazor AI AssistView component
11
11
12
-
The Blazor AI AssistView component followed the accessibility guidelines and standards, including [ADA](https://www.ada.gov/), [Section 508](https://www.section508.gov/), [WCAG 2.2](https://www.w3.org/TR/WCAG22/) standards, and [WCAG roles](https://www.w3.org/TR/wai-aria/#roles) that are commonly used to evaluate accessibility.
12
+
The Blazor AI AssistView component follows established accessibility guidelines and standards, including [ADA](https://www.ada.gov/), [Section 508](https://www.section508.gov/), [WCAG 2.2](https://www.w3.org/TR/WCAG22/) standards, and [WCAG roles](https://www.w3.org/TR/wai-aria/#roles) that are commonly used to evaluate accessibility.
13
13
14
-
The accessibility compliance for the Blazor AI AssistView component is outlined below.
14
+
The component’s accessibility compliance is summarized below.
15
15
16
16
| Accessibility Criteria | Compatibility |
17
17
| -- | -- |
@@ -45,7 +45,7 @@ The following ARIA attributes are used in the AI AssistView component:
45
45
| ------------ | ----------------------- |
46
46
|`role=button`| Indicates that the element is clickable and triggers an action when activated by the user. |
47
47
|`role=toolbar`| Specifies that the element is a toolbar. |
48
-
|`aria-label`|Defines a string value that labels an interactive element for accessibility. |
48
+
|`aria-label`|Provides an accessible name for interactive elements (for example, buttons, toolbar, or prompt input). |
49
49
|`aria-orientation`| Specifies the orientation of the toolbar. |
50
50
|`aria-disabled`| Indicates whether the toolbar or element is currently disabled and not interactive. |
51
51
|`aria-multiline`| Indicates that a textbox accepts multiple lines of input or only a single line. |
@@ -57,19 +57,19 @@ The following keyboard shortcuts are supported by the AI AssistView component.
57
57
| Windows | Mac | Actions |
58
58
| --- | --- | --- |
59
59
| <kbd>Enter</kbd> | <kbd>Enter</kbd> | Select the focused item. |
60
-
| <kbd>Tab</kbd> | <kbd>Tab</kbd> |Moves focus forward through the interactive elements. |
61
-
| <kbd>Shift</kbd> + <kbd>Tab</kbd> | <kbd>⇧</kbd> + <kbd>Tab</kbd> |Moves focus backward through the interactive elements. |
62
-
<b>AI AssistView Toolbars</b>|||
63
-
| <kbd>←</kbd> | <kbd>←</kbd> |Focuses the previous toolbar element. |
64
-
| <kbd>→</kbd> | <kbd>→</kbd> |Focuses the next toolbar element. |
| <kbd>←</kbd> | <kbd>←</kbd> |Move focus to the previous toolbar element. |
64
+
| <kbd>→</kbd> | <kbd>→</kbd> |Move focus to the next toolbar element. |
65
65
| <kbd>Enter</kbd> / <kbd>Space</kbd> | <kbd>Enter</kbd> / <kbd>Space</kbd> | Select the focused item or activate the selected option. |
66
-
| <kbd>Home</kbd> | <kbd>Home</kbd> |Moves focus to the first toolbar element. |
67
-
| <kbd>End</kbd> | <kbd>End</kbd> |Moves focus to the last toolbar element. |
66
+
| <kbd>Home</kbd> | <kbd>Home</kbd> |Move focus to the first toolbar element. |
67
+
| <kbd>End</kbd> | <kbd>End</kbd> |Move focus to the last toolbar element. |
68
68
69
69
## Ensuring accessibility
70
70
71
71
The Blazor AI AssistView component's accessibility levels are ensured through an [axe-core](https://www.nuget.org/packages/Deque.AxeCore.Playwright) with playwright tests.
72
72
73
73
## See also
74
74
75
-
*[Accessibility in Syncfusion<supstyle="font-size:70%">®</sup> Blazor components](https://blazor.syncfusion.com/documentation/common/accessibility)
75
+
* Accessibility in Syncfusion<supstyle="font-size:70%">®</sup> Blazor components(https://blazor.syncfusion.com/documentation/common/accessibility)
Copy file name to clipboardExpand all lines: blazor/ai-assistview/appearance.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,8 @@ documentation: ug
9
9
10
10
# Appearance in Blazor AI AssistView component
11
11
12
+
Customize the AI AssistView appearance by configuring width and height and by applying custom styles through the CssClass property.
13
+
12
14
## Setting width
13
15
14
16
You can use the [Width](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.SfAIAssistView.html#Syncfusion_Blazor_InteractiveChat_SfAIAssistView_Width) property to set the width of the AI AssistView. The default value is `100%`.
Copy file name to clipboardExpand all lines: blazor/ai-assistview/assist-view.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ documentation: ug
11
11
12
12
## Setting prompt text
13
13
14
-
You can use the [Prompt](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.SfAIAssistView.html#Syncfusion_Blazor_InteractiveChat_SfAIAssistView_Prompt) property to define the prompt text for the AI AssistView component.
14
+
Use the [Prompt](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.SfAIAssistView.html#Syncfusion_Blazor_InteractiveChat_SfAIAssistView_Prompt) property to define the initial prompt text displayed in the AI AssistView component. This value is sent when the prompt is requested and can be processed to generate a response.
15
15
16
16
```cshtml
17
17
@@ -36,7 +36,7 @@ You can use the [Prompt](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor
36
36
37
37
## Setting prompt placeholder
38
38
39
-
You can use the [PromptPlaceholder](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.SfAIAssistView.html#Syncfusion_Blazor_InteractiveChat_SfAIAssistView_PromptPlaceholder) property to set the placeholder text for the prompt textarea. The default value is `Type prompt for assistance...`.
39
+
Use the [PromptPlaceholder](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.SfAIAssistView.html#Syncfusion_Blazor_InteractiveChat_SfAIAssistView_PromptPlaceholder) property to set the placeholder text in the prompt text area. The default placeholder is displayed when the text area is empty. The default value is `Type prompt for assistance...`.
40
40
41
41
```cshtml
42
42
@@ -61,9 +61,9 @@ You can use the [PromptPlaceholder](https://help.syncfusion.com/cr/blazor/Syncfu
61
61
62
62
## Prompt-response collection
63
63
64
-
You can use the [Prompts](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.SfAIAssistView.html#Syncfusion_Blazor_InteractiveChat_SfAIAssistView_Prompts) property to initialize the component with the configured data as a collection of prompts and responses or individual entries.
64
+
Use the [Prompts](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.SfAIAssistView.html#Syncfusion_Blazor_InteractiveChat_SfAIAssistView_Prompts) property to initialize the component with a predefined collection of prompts and responses, or with individual entries.
65
65
66
-
The `Prompts` collection stores all the prompts and responses generated.
66
+
The `Prompts` collection stores all prompts and responses generated during the session.
67
67
68
68
```cshtml
69
69
@@ -93,7 +93,7 @@ The `Prompts` collection stores all the prompts and responses generated.
93
93
94
94
## Adding prompt suggestions
95
95
96
-
You can use the [PromptSuggestions](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.SfAIAssistView.html#Syncfusion_Blazor_InteractiveChat_SfAIAssistView_PromptSuggestions) property, to add the suggestions in both initial and on-demand which help users to refine their prompts. Additionally, custom header can be set for suggestions further enhancing the user experience.
96
+
Use the [PromptSuggestions](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.SfAIAssistView.html#Syncfusion_Blazor_InteractiveChat_SfAIAssistView_PromptSuggestions) property to provide suggested prompts on initial load and ondemand, helping users refine their input. Additionally, a custom header can be set for suggestions to enhance usability.
97
97
98
98
```cshtml
99
99
@@ -121,7 +121,7 @@ You can use the [PromptSuggestions](https://help.syncfusion.com/cr/blazor/Syncfu
121
121
122
122
### Adding suggestion headers
123
123
124
-
You can use the [PromptSuggestionsHeader](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.SfAIAssistView.html#Syncfusion_Blazor_InteractiveChat_SfAIAssistView_PromptSuggestionsHeader) property to set the header text for the prompt suggestions in the AI AssistView.
124
+
Use the [PromptSuggestionsHeader](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.SfAIAssistView.html#Syncfusion_Blazor_InteractiveChat_SfAIAssistView_PromptSuggestionsHeader) property to set the header text for the prompt suggestions displayed in the AI AssistView.
125
125
126
126
```cshtml
127
127
@@ -149,7 +149,7 @@ You can use the [PromptSuggestionsHeader](https://help.syncfusion.com/cr/blazor/
149
149
150
150
## Adding prompt iconCss
151
151
152
-
You can customize the appearance of the prompter avatar by using the [PromptIconCss](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.SfAIAssistView.html#Syncfusion_Blazor_InteractiveChat_SfAIAssistView_PromptIconCss) property.
152
+
Customize the appearance of the prompter avatar using the [PromptIconCss](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.SfAIAssistView.html#Syncfusion_Blazor_InteractiveChat_SfAIAssistView_PromptIconCss) property.
153
153
154
154
```cshtml
155
155
@@ -179,7 +179,7 @@ You can customize the appearance of the prompter avatar by using the [PromptIcon
179
179
180
180
## Adding response iconCss
181
181
182
-
You can use the [ResponseIconCss](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.SfAIAssistView.html#Syncfusion_Blazor_InteractiveChat_SfAIAssistView_ResponseIconCss) property to customize the appearance of the responder avatar. By default, the `e-assistview-icon` class is added as the built-in AI AssistView response icon.
182
+
Use the [ResponseIconCss](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.SfAIAssistView.html#Syncfusion_Blazor_InteractiveChat_SfAIAssistView_ResponseIconCss) property to customize the appearance of the responder avatar. By default, the `e-assistview-icon` class is applied as the built-in AI AssistView response icon.
0 commit comments