Skip to content

TkxAIChatBubble

import { TkxAIChatBubble } from 'tekivex-ui/experimental';

AIChatBubble is part of the experimental surface of tekivex-ui. Use it for prototypes; pin and audit before production. For production chat UIs, prefer TkxChat from the core entry.

PropTypeRequiredDescription
roleAIRoleyesWho sent this message
contentstring | ReactNodeyesMessage text (will be sanitized) or arbitrary ReactNode
avatarstringOptional avatar URL or initials
namestringOptional display name
timestampstringISO timestamp string
streamingbooleanAnimate text in character-by-character (streaming effect)
confidencenumberAI confidence 0–100 — renders a mini confidence bar when provided
copyablebooleanShow copy-to-clipboard button
classNamestring
styleCSSProperties
  • Keyboard navigation supported on all interactive elements
  • :focus-visible outline at 2px (theme-token primary)
  • ARIA roles and properties applied per WAI-ARIA 1.2
  • Respects prefers-reduced-motion
  • Minimum 44×44 touch target where applicable

The implementation lives at src/components/TkxAIChatBubble.tsx.

This page is a generated scaffold. It will be replaced with hand-authored examples and a live preview in a follow-up release. For interactive demos, see the legacy demo site.