Skip to content
Components / AI chat

Activity disclosure

Collapsible reasoning, search steps and tool activity inside an answer.

@fabrials/ai-ui
Loading state

Comparing the two layer orders before choosing one.

  1. Searched webcss cascade layers component libraries
  2. Searched webcolor-mix oklab browser support 2026
Ran a calculation

Installation

  1. Import the control from @fabrials/ai-ui, after setting the app up.

    TypeScript
    import { ActivityDisclosure, ActivityIcon, ReasoningDisclosure, SearchStepsDisclosure } from "@fabrials/ai-ui";import "@fabrials/ai-ui/styles.css";

API reference

Prop / exportTypeDescription
streamingbooleanReasoningDisclosure shows Thinking, then Thought for durationSeconds.
phaseSearchPhaseFor search steps: searching, reading or done, with steps and sourceCount.
livebooleanActivityDisclosure for any other activity. ActivityIcon marks the live state.
openbooleanControlled open state. defaultOpen works uncontrolled.

Behavior

Presentational. The host maps its stream events to these props. Live indicators stop under reduced motion.

Accessibility

Keyboard and contrast
Keep visible labels, keyboard focus and status announcements when customizing. These components inherit your theme; maintain sufficient contrast in both color modes. The preview is keyboard operable.