AI Chat Fancy Stable

ChatError

Quiet inline failure banner for a chat turn: the error, an optional detail line, and a retry button that disables itself while the retry is in flight

Preview

Installation

pnpm add fancy-ui-svelte
import { ChatError } from 'fancy-ui-svelte'

Usage

svelte
<script lang="ts">
  import { ChatError } from 'fancy-ui-svelte';
</script>

<ChatError />

Examples

Basic Usage

Props

PropTypeDefaultDescription
message string"Something went wrong"The failure line
detail string-Secondary muted line under the message, e.g. the error code
onRetry () => void-Pressing retry calls this; the retry button only exists when it is set
retryLabel string"Retry"Label for the retry button
retrying booleanfalseWhether a retry is in flight: disables the button and marks the row busy

Slots

SlotDescription
iconLeading icon, replacing the default warning triangle
childrenRendered instead of the message and detail block