For the complete documentation index, see llms.txt. Markdown variants are available by appending .md to any URL or sending an Accept: text/markdown header. An agent skill is available at /.well-known/agent-skills/site-skill.md.
FrakmentFrakment

Introduction

Copy-paste components for React web and Expo applications.

Frakment is a registry of editable React and React Native components that you add to your own project.

The web CLI installs web components, and its Expo mode installs the native components listed in the native catalog.

What is included

Chat surfaces

Message components provide layouts, bubbles, scrolling, and animated message primitives for web.

Agent interfaces

Compose traces, reasoning views, and tool output from the available web components.

Code output

Display formatted code with headers, copy actions, line numbers, and diffs.

Status and markers

Show loading, progress, and service status with web components.

Web and native

Use the web registry in React projects and the Expo registry in React Native projects.

Agent tools

Use the MCP server and published skills to discover components and retrieve installation commands.

Installation

Web

Initialize Frakment in an existing React 19 and Tailwind CSS v4 project, then add a component:

$ npx frakment@latest init
npx frakment@latest add button

The CLI requires Node.js 22.18.0 or newer.

Expo

Initialize Frakment in an existing Expo and NativeWind project, then add a native component:

$ npx frakment@latest init --expo
npx frakment@latest add button --expo

See the native installation guide for Expo requirements and setup details.

Manual installation

Copy component source from its documentation page and follow the manual setup guide.

Motion

Web components that expose a motion prop use CSS transitions and respect the reduced-motion preference.

Native components use immediate state changes and do not expose the web motion prop.

See the animations guide for supported web behavior.

AI interface examples

AI Elements are UI compositions and examples, not model providers or backend services.

Connect the components to your own model, transport, and application logic.

Agent tools

The MCP server exposes registry search, component source, compositions, and CLI install commands.

The MCP server returns commands for the agent to use and does not write files into your project.

Frakment also publishes an LLM documentation index and agent skills.

Component catalog

CategoryWebNative
ChatMessage
Agent interfacesTrace, Chain of Thought
CodeCode Block
StatusMarker, Spinner
LayoutItem, SeparatorSeparator
ActionsButton, BadgeButton, Button Group
Forms and navigationBrowse all

The registry currently contains 43 web entries and three native entries; these counts refer to registry entries, not individual component exports.

Browse the web components, AI Elements, or native components.

Next steps