DOCS
v0.4

AI Components / Follow Up

Follow Up

AI suggestion chips that appear after a response to guide the next question. Staggered animation, 3 variants.

ai-displayv0.1.0

Playground

Examples

With icons
<cg-follow-up></cg-follow-up>
Plain chips
<cg-follow-up></cg-follow-up>
Cards
<cg-follow-up variant="cards"></cg-follow-up>
Buttons
<cg-follow-up variant="buttons"></cg-follow-up>
With overflow
<cg-follow-up maxVisible="3"></cg-follow-up>
Loading
<cg-follow-up loading></cg-follow-up>

Import

import { CgFollowUp } from '@cognivo/components';
// Or tree-shake: import '@cognivo/components/cg-follow-up';

Per-component imports ship only that component (~8 kB gzip).

API Reference

PropTypeDefaultDescription
itemsstring[] | {text, icon}[]Suggestion items
labelstring"Suggested"Header label
variant"chips" | "cards" | "buttons""chips"Visual variant
hideLabelbooleanfalseHide the header label
disabledbooleanfalseDisable all chips
loadingbooleanfalseShow shimmer placeholders
maxVisiblenumber0Max visible items (0 = show all)

Events

EventDetailDescription
cg-follow-up-click{text}When a suggestion is clicked