Suggestion
A short prompt you can send to the agent in one click.
Usage
Suggestion
import { Component, ViewEncapsulation, signal } from '@angular/core';import { FormField, FormRoot, form } from '@angular/forms/signals';import { ScBubble, ScBubbleContent, ScButton, ScInputGroup, ScInputGroupAddon, ScInputGroupButton, ScMessage,Each one is a Button component with the prompt as its label; the label is the message, sent as is. Put a row of them above the Prompt Input.
Anatomy
import { ScButton } from '@semantic-components/ui';<div class="scroll-fade-x scrollbar-none flex gap-2 overflow-x-auto overscroll-x-contain"> @for (suggestion of suggestions; track suggestion) { <button scButton variant="outline" size="sm" class="shrink-0" (click)="send(suggestion)"> {{ suggestion }} </button> }</div>Scrolling
The row scrolls sideways when the suggestions do not fit. scroll-fade-x fades the edge that has more to show, and shrink-0 keeps each label on one line.
Examples
RTL
import { Dir } from '@angular/cdk/bidi';import { Component, LOCALE_ID, ViewEncapsulation } from '@angular/core';import { ScButton } from '@semantic-components/ui';
/** Right to left: the row starts on the right and scrolls toward the left. */@Component({ selector: 'app-rtl-suggestion-demo', imports: [Dir, ScButton], template: ` <divAPI reference
See the Button component.