@agentxjs/ui
v1.3.0
Published
AgentX UI Components - React component library for building AI agent interfaces
Downloads
1,981
Readme
@agentxjs/ui
React component library for building AI agent interfaces.
Features
- React components optimized for AI agent UIs
- TypeScript support with full type definitions
- Tailwind CSS for styling with custom design tokens
- Storybook for component development and documentation
- Tree-shakeable ESM exports
Installation
pnpm add @agentxjs/uiUsage
import { Button } from "@agentxjs/ui";
import "@agentxjs/ui/styles.css";
function App() {
return <Button>Click me</Button>;
}Development
# Install dependencies
pnpm install
# Run Storybook
pnpm storybook
# Build the library
pnpm build
# Type checking
pnpm typecheck
# Linting
pnpm lintArchitecture
This package follows a layered architecture:
src/api/- Public API (skin layer)src/types/- Public type definitionssrc/components/- React componentssrc/styles/- Global styles and design tokenssrc/utils/- Utility functions
Design System
The component library uses a semantic token system based on Tailwind CSS:
- Primary: Computational intelligence (Blue)
- Secondary: Generative creativity (Amber)
- Accent: Interactive highlights (Orange)
- Success/Warning/Error: Feedback states
Dark mode is supported via CSS custom properties.
Related Packages
- agentxjs - Platform API (createAgentX, defineAgent)
- @agentxjs/types - Message and event type definitions
- @agentxjs/agent - Agent runtime
License
MIT
