Skip to main content

Components Overview

AgentsKit ships headless components that render semantic HTML with data-ak-* attributes. Import the default theme for instant styling, or target the attributes with your own CSS.

Available Components

ComponentPurpose
ChatContainerScrollable chat layout with auto-scroll
MessageChat bubble with streaming support
MarkdownText/markdown renderer
CodeBlockSyntax-highlighted code with copy button
ToolCallViewExpandable tool invocation display
ThinkingIndicatorAnimated thinking/loading state
InputBarText input with send button

Headless Philosophy

Components render minimal HTML with data-ak-* attributes:

<div data-ak-message data-ak-role="user" data-ak-status="complete">
<div data-ak-content>Hello!</div>
</div>

Style with attribute selectors:

[data-ak-role="user"] [data-ak-content] {
background: blue;
color: white;
}

Or import the default theme:

import '@agentskit/react/theme'