Home

Awesome

<a name="readme-top"></a>

<div align="center"> <img height="120" src="https://registry.npmmirror.com/@lobehub/assets-logo/1.0.0/files/assets/logo-3d.webp"> <img height="120" src="https://gw.alipayobjects.com/zos/kitchen/qJ3l3EPsdW/split.svg"> <img height="120" src="https://registry.npmmirror.com/@lobehub/assets-emoji/1.3.0/files/assets/lollipop.webp"> <h1>Lobe UI</h1>

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

Documents Β· Changelog Β· Report Bug Β· Request Feature

<!-- SHIELD GROUP -->

<br/>

</div> <details> <summary><kbd>Table of contents</kbd></summary>

TOC

</details>

πŸ“¦ Installation

[!IMPORTANT]
This package is ESM only.

To install Lobe UI, run the following command:

$ bun add @lobehub/ui

Compile with NextJS

[!NOTE]
By work correct with nextjs page router SSR, add transpilePackages: ['@lobehub/ui'] to next.config.js. For example:

// next.config.js
const nextConfig = {
  // ...other config

  transpilePackages: ['@lobehub/ui'],
};
<div align="right">

</div>

🀯 Usage

[!NOTE]
The LobeUI components are developed based on Antd, fully compatible with Antd components, and it is recommended to use antd-style as the default css-in-js styling solution.

import { ThemeProvider, Button } from '@lobehub/ui'
import { Button } from 'antd'

export default () => (
  <ThemeProvider>
    <Button>Hello AIGC</Button>
  </ThemeProvider>
)
<div align="right">

</div>

⌨️ Local Development

You can use Github Codespaces for online development:

Or clone it for local development:

$ git clone https://github.com/lobehub/lobe-ui.git
$ cd lobe-ui
$ bun install
$ bun start
<div align="right">

</div>

🀝 Contributing

Contributions of all types are more than welcome, if you are interested in contributing code, feel free to check out our GitHub Issues to get stuck in to show us what you’re made of.

<div align="right">

</div>

🩷 Sponsor

Every bit counts and your one-time donation sparkles in our galaxy of support! You're a shooting star, making a swift and bright impact on our journey. Thank you for believing in us – your generosity guides us toward our mission, one brilliant flash at a time.

<a href="https://opencollective.com/lobehub" target="_blank"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://github.com/lobehub/.github/blob/main/static/sponsor-dark.png?raw=true"> <img src="https://github.com/lobehub/.github/blob/main/static/sponsor-light.png?raw=true"> </picture> </a> <div align="right">

</div>

πŸ”— Links

More Products

Design Resources

Development Resources

More Resources

<div align="right">

</div>
<details><summary><h4>πŸ“ License</h4></summary>

</details>

Copyright Β© 2023 LobeHub. <br /> This project is MIT licensed.

<!-- LINK GROUP -->