Library / SDK
lobehub/lobe-ui avatar
lobehub/lobe-ui

Lobe UI v6 is ESM only, needs React 19, and has dropped Ant Design

🍭 Lobe UI - an open-source UI component library for building AIGC web apps

2,282 stars279 forksTypeScriptMIT

At a glance

What is it?
lobehub/lobe-ui is the React component library behind LobeHub, aimed at AI chat and AIGC web apps. Version 6 narrows what it runs on, and the upgrade from 5.x is the main cost to check.
Who is it for?
Choose Lobe UI if you are building a chat or AIGC interface in a React 19 app that can take an ESM-only package with four peer dependencies. Skip it if you are pinned to React 18 or still lean on Ant Design.
Can I use it commercially?
Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository last received commits 1 day ago.
What is it written in?
Mainly TypeScript, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 25, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • lobehub/lobe-ui2,282 ★ · +33
Star history
Repository2026-11-032026-11-25
lobehub/lobe-ui2.2k2.3k

33 Stars in the last 22 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

Four peer dependencies come with the one install command

The install line pulls in more than the package itself:

bash
$ pnpm add @lobehub/ui @lobehub/icons @lobehub/fluent-emoji motion

Lobe UI is ESM only and expects React 19, `motion` 13 or 14, `@lobehub/icons` 6 and `@lobehub/fluent-emoji` 5 as peer dependencies. A project on CommonJS tooling or an older React will fail at install time or at the first import, before any component renders. The package.json sets `"type": "module"` and points every export at `.mjs` files under `./es/`, with no CommonJS fallback, so there is nothing to switch to. The license is MIT.

ConfigProvider needs the motion library passed in by hand

Nothing renders correctly until two stylesheets and a provider are in place. The minimal example imports `@lobehub/ui/theme.css` and `@lobehub/ui/style.css`, then wraps the tree:

tsx
import '@lobehub/ui/theme.css';
import '@lobehub/ui/style.css';

import { Button, ConfigProvider } from '@lobehub/ui';
import { motion } from 'motion/react';

export default () => (
  <ConfigProvider motion={motion}>
    <Button type="primary">Hello AIGC</Button>
  </ConfigProvider>
);

The `motion` prop receives the `motion/react` export from your own install, which is why `motion` appears in the peer list. Skipping `ConfigProvider` means skipping the theming and animation wiring that the other components expect. Theming, i18n, CSS layers and framework setup live on ui.lobehub.com, not in the repository README, so a Next.js or Vite setup has to be worked out from the docs site.

Version 6 removed Ant Design and v5 code has to be rewritten

Anyone upgrading from 5.x meets the breaking change first: v6 drops Ant Design. Two tools exist for it. `npx @lobehub/ui-codemod@latest v6 . --dry` rewrites v5 code and writes a JSON report listing what it could not convert, and `npx skills add lobehub/lobe-ui` installs a v6 migration skill so a coding agent can work through the remainder. There is also a written guide at ui.lobehub.com/migration-v6. A dry run only reports. It does not tell you how much hand editing is left until you read that JSON file, so a large 5.x codebase should be dry-run before anyone commits to a date.

Subpath entry points split the library by use case

The root `@lobehub/ui` holds core components, `ConfigProvider` and theming. Heavier or more specialized parts sit behind separate paths: `@lobehub/ui/chat` and `@lobehub/ui/mobile` for chat and mobile UI, `@lobehub/ui/dashboard`, `@lobehub/ui/pro-table` and `@lobehub/ui/form` for admin consoles, tables and forms, and `@lobehub/ui/awesome`, `@lobehub/ui/brand` and `@lobehub/ui/mdx` for landing pages, LobeHub branding and MDX docs. The package.json exports also list `./spline`, `./color` and `./i18n` with per-locale resources under `./i18n/resources/*`. The practical cost: importing a chat component from the root will not work, and you need to know which path owns which component before you write the import. The docs site is the only place that maps components to paths.

Docs are written for coding agents, and the prompt is only as good as the page it reads

The project publishes `skills.md`, a Markdown reference with usage, props and API for every component, and `llms.txt`, a page index with outlines. Its suggested prompt for Cursor, Claude Code, Codex and similar tools reads:

text
Read https://ui.lobehub.com/skills.md, then use @lobehub/ui to build a chat page with a message list and an input box. Only use components, props and imports documented there.

The last sentence of that prompt is the useful part, because it restricts the agent to documented imports. Both files are served from the docs site, so an offline or air-gapped agent cannot fetch them, and an agent working from a stale copy will write against whatever version that copy describes. Pin the version in package.json and check the docs site shows the same one.

Styling is overridden through stable class names, and the first load is flash free

Restyling does not require patching the library. Stable class names let you override any component with plain CSS or Tailwind, and light and dark modes plus primary and neutral colors switch with a single attribute, with no flash on first load. English and Simplified Chinese text ships in the box. Those are the only two languages listed, so an interface in German or Japanese needs its own strings through the `@lobehub/ui/i18n` entry. The README says nothing about how class names are versioned, so an override that targets one today has no stated guarantee across the next minor release. Test visual overrides after every upgrade.

The GitHub release list stops at v1.165.6 while package.json says 6.10.2

The repository is not archived, and the last push was 2026-09-20. The most recent GitHub release in the listing is v1.165.6 from 2025-03-11, followed by v1.87.1 and v1.87.0 from 2023-09-06, yet package.json reports version 6.10.2. A reader who checks the Releases tab alone will see a stale project and an old major version. The CHANGELOG.md in the repository and the npm page are the places to read what changed between 5.x and 6.10.2. Local development needs Node.js 22.22 or newer and pnpm, then `pnpm install` and `pnpm start`, or GitHub Codespaces if you would rather not set that up.

Editorial conclusion

Choose Lobe UI if you are building a chat or AIGC interface in a React 19 app that can take an ESM-only package with four peer dependencies. Skip it if you are pinned to React 18 or still lean on Ant Design. Before adopting, run the codemod against a copy of your code and read the JSON report it writes.

Frequently asked questions

Is Lobe AI free for use with Lobe UI?

Lobe UI itself, the lobehub/lobe-ui repository, is MIT licensed, so the component library is free to use. The repository does not describe Lobe AI as a product or its pricing.

What are the key differences between LobeHub and Open WebUI when choosing Lobe UI?

Lobe UI is the React component library behind LobeHub, for building your own AI chat and AIGC web apps. Its README does not compare LobeHub with Open WebUI.

What is lobe chat, and how does Lobe UI relate to it?

Lobe UI is a component library with chat interface pieces, imported from `@lobehub/ui/chat`. The repository does not describe Lobe Chat, so check the LobeHub project for that.

What are some alternatives to LobeHub's Lobe UI?

The repository names no alternatives. Its stated focus is rendering LLM output such as Markdown, code, Mermaid diagrams, diffs and HTML previews, and shipping chat interfaces, so compare libraries on those points.

Official sources

  1. License: MIT
  2. lobehub/lobe-ui on GitHub
  3. Project website
  4. README
  5. Releases
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/lobehub-lobe-ui.svg)](https://hysenlabs.com/projects/lobehub-lobe-ui)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/lobehub-lobe-ui.svg)](https://hysenlabs.com/projects/lobehub-lobe-ui)

Was this useful?