- Prop
suggestions- Type
readonly string[] | undefined- Default
- —
- Requirement
- optional
Docs Components Assistant
ThreadFollowupSuggestions
React example follows below.
Vue example follows below.
Angular example follows below.
Svelte example follows below.
Solid example follows below.
- parts
- —
- nodes
- —
- size
- —
- part
- —
ts
import { ThreadFollowupSuggestions } from "@grassroot/ui-react/assistant";import { assistantDemoSuggestions } from "@grassroot/demo-fixtures"; export default function ThreadFollowupSuggestionsDemo() { return <ThreadFollowupSuggestions suggestions={assistantDemoSuggestions} />;}- parts
- —
- nodes
- —
- size
- —
- part
- —
ts
<script setup lang="ts">import { ThreadFollowupSuggestions } from "@grassroot/ui-vue/assistant";import { assistantDemoSuggestions } from "@grassroot/demo-fixtures";</script> <template> <ThreadFollowupSuggestions :suggestions="assistantDemoSuggestions" /></template>- parts
- —
- nodes
- —
- size
- —
- part
- —
ts
import "./ensure-compiler";import { ChangeDetectionStrategy, Component } from "@angular/core";import { GrassrootThreadFollowupSuggestions } from "@grassroot/ui-angular/assistant";import { assistantDemoSuggestions } from "@grassroot/demo-fixtures"; @Component({ selector: "app-thread-followup-suggestions-demo", standalone: true, imports: [GrassrootThreadFollowupSuggestions], changeDetection: ChangeDetectionStrategy.OnPush, template: `<grassroot-thread-followup-suggestions [suggestions]="suggestions" />`,})export class ThreadFollowupSuggestionsDemoComponent { protected readonly suggestions = assistantDemoSuggestions;} export default ThreadFollowupSuggestionsDemoComponent;- parts
- —
- nodes
- —
- size
- —
- part
- —
ts
<script lang="ts"> import { ThreadFollowupSuggestions } from "@grassroot/ui-svelte/assistant"; import { assistantDemoSuggestions } from "@grassroot/demo-fixtures";</script> <ThreadFollowupSuggestions suggestions={assistantDemoSuggestions} />- parts
- —
- nodes
- —
- size
- —
- part
- —
ts
/** @jsxImportSource solid-js */import { ThreadFollowupSuggestions } from "@grassroot/ui-solid/assistant";import { assistantDemoSuggestions } from "@grassroot/demo-fixtures"; export default function ThreadFollowupSuggestionsDemo() { return <ThreadFollowupSuggestions suggestions={assistantDemoSuggestions} />;}Installation
API Reference
Import
import { ThreadFollowupSuggestions } from "@grassroot/ui-react/assistant";
import { assistantDemoSuggestions } from "@grassroot/demo-fixtures";
Props
Prop
Type
Default
Requirement
suggestionsreadonly string[] | undefined—
optional
onSelect((suggestion: string) => void) | undefined—
optional
- Prop
onSelect- Type
((suggestion: string) => void) | undefined- Default
- —
- Requirement
- optional
Events
| Event | Payload |
|---|---|
onSelect | ((suggestion: string) => void) | undefined |
Native attributes
Standard DOM and ARIA attributes not listed above spread onto the root element.
Import
import { ThreadFollowupSuggestions } from "@grassroot/ui-vue/assistant";
import { assistantDemoSuggestions } from "@grassroot/demo-fixtures";
Props
Prop
Type
Default
Requirement
suggestionsstring[]() => []optional
- Prop
suggestions- Type
string[]- Default
() => []- Requirement
- optional
Events
| Event | Payload |
|---|---|
select | (string) => void |
Import
import "./ensure-compiler";
import { ChangeDetectionStrategy, Component } from "@angular/core";
import { GrassrootThreadFollowupSuggestions } from "@grassroot/ui-angular/assistant";
import { assistantDemoSuggestions } from "@grassroot/demo-fixtures";
Props
Prop
Type
Default
Requirement
suggestionsreadonly string[][]optional
- Prop
suggestions- Type
readonly string[]- Default
[]- Requirement
- optional
Events
| Event | Payload |
|---|---|
select | string |
Import
import { ThreadFollowupSuggestions } from "@grassroot/ui-svelte/assistant";
import { assistantDemoSuggestions } from "@grassroot/demo-fixtures";
Props
Prop
Type
Default
Requirement
suggestionsreadonly string[]—
optional
onSelect(suggestion: string) => void—
optional
classstring—
optional
stylestring—
optional
- Prop
suggestions- Type
readonly string[]- Default
- —
- Requirement
- optional
- Prop
onSelect- Type
(suggestion: string) => void- Default
- —
- Requirement
- optional
- Prop
class- Type
string- Default
- —
- Requirement
- optional
- Prop
style- Type
string- Default
- —
- Requirement
- optional
Events
| Event | Payload |
|---|---|
onSelect | (suggestion: string) => void |
Content regions
children
Import
import { ThreadFollowupSuggestions } from "@grassroot/ui-solid/assistant";
import { assistantDemoSuggestions } from "@grassroot/demo-fixtures";
Props
Prop
Type
Default
Requirement
suggestionsreadonly string[]—
optional
onSelect(suggestion: string) => void—
optional
- Prop
suggestions- Type
readonly string[]- Default
- —
- Requirement
- optional
- Prop
onSelect- Type
(suggestion: string) => void- Default
- —
- Requirement
- optional
Events
| Event | Payload |
|---|---|
onSelect | (suggestion: string) => void |
Content regions
children
Native attributes
Standard DOM and ARIA attributes not listed above spread onto the root element.