lobehub/lobe-ui
🍭 Lobe UI - an open-source UI component library for building AIGC web apps
What it solves
Building AI chat and AIGC (AI-generated content) web apps from scratch is time-consuming. Lobe UI provides a set of ready-made React components so you can render LLM outputs like Markdown, code, Mermaid diagrams, diffs, and HTML previews, and ship chat interfaces without reinventing the wheel. It also unifies the look across landing pages, admin consoles, dashboards, forms, and data tables.
How it works
Lobe UI is a component library you install via pnpm (e.g., pnpm add @lobehub/ui). It works with React 19 and includes UI styles and theme CSS. You import components like Button and wrap your app in a ConfigProvider. Theming is simple: switch light/dark and primary/neutral colors with a single attribute, with no flash on first load. Components have stable class names so you can restyle them with plain CSS or Tailwind. It also provides separate entry points for chat, mobile, dashboard, etc. via subpaths like @lobehub/ui/chat. The docs are also AI-friendly: coding agents can read skills.md and llms.txt to use the library.
Who it's for
Developers building AI chat or AIGC web apps with React. It's useful for solo devs, startups, and teams that want a consistent design language across their product. Also helpful for people who want AI coding agents to generate UI code, since the docs are agent-readable.
Highlights
- Built specifically for AI apps: renders Markdown, code, diagrams, diffs, and HTML previews.
- One design language from landing pages to admin consoles.
- One-line theming: light/dark and primary/neutral colors switch with a single attribute.
- Stable class names allow easy restyling with CSS or Tailwind.
- Includes English and Simplified Chinese text.
- AI-native documentation: skills.md and llms.txt for coding agents.
- Provides separate entry points for chat, mobile, dashboard, forms, icons, etc.
- ESM only, needs React 19 and peer dependencies.
Related
- Project
- Project
- Project
- Project
- Project