Skip to main content

AIPrompt

The AIPrompt component lets users interact with an AI service by writing prompts and executing predefined commands.

Accessibility Support

Out of the box, the Telerik and Kendo UI Prompt provides extensive accessibility support and enables users with disabilities to acquire complete control over its features.

The Prompt is compliant with the Web Content Accessibility Guidelines (WCAG) 2.2 standards and Section 508 requirements, follows the Web Accessibility Initiative - Accessible Rich Internet Applications (WAI-ARIA) best practices for implementing the keyboard navigation and provides options for managing its focus and is tested against the most popular screen readers.

Prompt

ARIA Attributes

AttributeDescription
aria-controlsPoints to the controlled element based on the given id.
aria-expandedIndicates the expanded state of the prompt expander content.
role="group"Indicates that the suggestion container element is a group.
role="button"Indicates that the suggestion element is a button.
aria-label|titleThe suggestion elements must be properly labelled.
tabindex="0"The suggestion element should be focusable.

Keyboard Navigation

TriggerBehavior
EscapeIf generating, stops the generation process.
Enter or SpaceTriggers a click action on the suggestion element.
EscapeIf generating, stops the generation process. If not, closes the Inline AI Prompt popup.
EnterSends the message.
Shift + EnterStarts a new line in the textarea message box.

UX Behavior

FeatureDescription
Input areaA text input or textarea for entering the prompt text.
SubmitA send button or Enter key submits the prompt.
SuggestionsPre-defined prompt suggestions are displayed above the input.
ToolbarAn optional toolbar provides prompt-related actions.

PromptSendButton

Testing

The Prompt has been extensively tested automatically with axe-core and manually with the most popular screen readers.

Screen Readers

The Prompt has been tested with the following screen readers and browsers combinations:

EnvironmentTool
FirefoxNVDA
ChromeJAWS
Microsoft EdgeJAWS
Feedback