npm package: @openbrain/ui
Description: AgentX UI is an open-source UI component library for building AIGC web apps
Author: AgentX
Latest version: 2.24.1

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

<div align="center">

<h1>AgentX UI</h1>

AgentX UI is an open-source UI component library for building _AIGC_ web apps

[Documents](https://ui.agentx.vn) · [Changelog](./CHANGELOG.md) · [Report Bug][github-issues-link] · [Request Feature][github-issues-link]

<!-- SHIELD GROUP -->

[![][npm-release-shield]][npm-release-link]
[![][vercel-shield]][vercel-link]
[![][discord-shield]][discord-link]
[![][npm-downloads-shield]][npm-downloads-link]
[![][github-releasedate-shield]][github-releasedate-link]
[![][github-action-test-shield]][github-action-test-link]
[![][github-action-release-shield]][github-action-release-link]<br/>
[![][github-contributors-shield]][github-contributors-link]
[![][github-forks-shield]][github-forks-link]
[![][github-stars-shield]][github-stars-link]
[![][github-issues-shield]][github-issues-link]
[![][github-license-shield]][github-license-link]

[![][banner]][vercel-link]

</div>

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

#### TOC

- [📦 Installation](#-installation)
  - [Compile with NextJS](#compile-with-nextjs)
- [🤯 Usage](#-usage)
- [⌨️ Local Development](#️-local-development)
- [🤝 Contributing](#-contributing)
- [🩷 Sponsor](#-sponsor)
- [🔗 Links](#-links)
  - [More Products](#more-products)
  - [Design Resources](#design-resources)
  - [Development Resources](#development-resources)

####

</details>

## 📦 Installation

> \[!IMPORTANT]\
> This package is [ESM only](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c).

To install AgentX UI, run the following command:

[![][bun-shield]][bun-link]

```bash
$ bun add @openbrain/ui
```

### Compile with NextJS

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

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

  transpilePackages: ['@openbrain/ui'],
};
```

<div align="right">

[![][back-to-top]](#readme-top)

</div>

## 🤯 Usage

> \[!NOTE]\
> The AgentX UI components are developed based on [Antd](https://ant.design/components/overview/), fully compatible with Antd components,
> and it is recommended to use [antd-style](https://ant-design.github.io/antd-style/) as the default css-in-js styling solution.

```tsx
import { ThemeProvider, Button } from '@openbrain/ui'
import { Button } from 'antd'

export default () => (
  <ThemeProvider>
    <Button>Hello AIGC</Button>
  </ThemeProvider>
)
```

<div align="right">

[![][back-to-top]](#readme-top)

</div>

## ⌨️ Local Development

You can use Github Codespaces for online development:

[![][codespaces-shield]][codespaces-link]

Or clone it for local development:

```bash
$ git clone https://github.com/AgentXChat/AgentX-UI.git
$ cd AgentX-UI
$ bun install
$ bun start
```

<div align="right">

[![][back-to-top]](#readme-top)

</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][github-issues-link] to get stuck in to show us what you’re made of.

[![][pr-welcome-shield]][pr-welcome-link]

[![][contributors-contrib]][contributors-link]

<div align="right">

[![][back-to-top]](#readme-top)

</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.

<div align="right">

[![][back-to-top]](#readme-top)

</div>

## 🔗 Links

### Design Resources

- **[🍭 AgentX UI](https://ui.agentx.vn)** - An open-source UI component library for building AIGC web apps.
- **[🥨 AgentX Icons](https://agentx.vn/icons)** - Popular AI / LLM Model Brand SVG Logo and Icon Collection.
### Development Resources

- **[🎤 AgentX TTS](https://tts.agentx.vn)** - A high-quality & reliable TTS/STT library for Server and Browser
- **[🌏 AgentX i18n](https://i18n.agentx.vn)** - Automation ai tool for the i18n (internationalization) translation process.

[More Resources](https://agentx.vn/resources)

<div align="right">

[![][back-to-top]](#readme-top)

</div>

---

<details><summary><h4>📝 License</h4></summary>

[![][fossa-license-shield]][fossa-license-link]

</details>

Copyright © 2025 [AgentX][profile-link]. <br />
This project is [MIT](./LICENSE) licensed.

<!-- LINK GROUP -->

[back-to-top]: https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square
[banner]: https://github-production-user-asset-6210df.s3.amazonaws.com/17870709/268452017-960ab8a1-e4b7-4648-beb1-77daf4b6034a.png
[bun-link]: https://bun.sh
[bun-shield]: https://img.shields.io/badge/-speedup%20with%20bun-black?logo=bun&style=for-the-badge
[contributors-contrib]: https://contrib.rocks/image?repo=AgentXChat/AgentX-UI
[contributors-link]: https://github.com/AgentXChat/AgentX-UI/graphs/contributors
[contributors-contrib]: https://contrib.rocks/image?repo=AgentXChat/AgentX-UI
[contributors-link]: https://github.com/AgentXChat/AgentX-UI/graphs/contributors
[github-contributors-link]: https://github.com/AgentXChat/AgentX-UI/graphs/contributors
[github-contributors-shield]: https://img.shields.io/github/contributors/AgentXChat/AgentX-UI?color=c4f042&labelColor=black&style=flat-square
[github-forks-link]: https://github.com/AgentXChat/AgentX-UI/network/members
[github-forks-shield]: https://img.shields.io/github/forks/AgentXChat/AgentX-UI?color=8ae8ff&labelColor=black&style=flat-square
[github-issues-link]: https://github.com/AgentXChat/AgentX-UI/issues
[github-issues-shield]: https://img.shields.io/github/issues/AgentXChat/AgentX-UI?color=ff80eb&labelColor=black&style=flat-square
[github-license-link]: https://github.com/AgentXChat/AgentX-UI/blob/master/LICENSE
[github-license-shield]: https://img.shields.io/github/license/AgentXChat/AgentX-UI?color=white&labelColor=black&style=flat-square
[github-releasedate-link]: https://github.com/AgentXChat/AgentX-UI/releases
[github-releasedate-shield]: https://img.shields.io/github/release-date/AgentXChat/AgentX-UI?labelColor=black&style=flat-square
[github-stars-link]: https://github.com/AgentXChat/AgentX-UI/network/stargazers
[github-stars-shield]: https://img.shields.io/github/stars/AgentXChat/AgentX-UI?color=ffcb47&labelColor=black&style=flat-square
[npm-downloads-link]: https://www.npmjs.com/package/@openbrain/ui
[npm-downloads-shield]: https://img.shields.io/npm/dt/@openbrain/ui?labelColor=black&style=flat-square
[npm-release-link]: https://www.npmjs.com/package/@openbrain/ui
[npm-release-shield]: https://img.shields.io/npm/v/@openbrain/ui?color=369eff&labelColor=black&logo=npm&logoColor=white&style=flat-square
[pr-welcome-link]: https://github.com/AgentXChat/AgentX-UI/pulls
[pr-welcome-shield]: https://img.shields.io/badge/🤯_pr_welcome-%E2%86%92-ffcb47?labelColor=black&style=for-the-badge
[profile-link]: https://github.com/AgentXChat
[vercel-link]: https://ui.agentx.vn
[vercel-shield]: https://img.shields.io/website?down_message=offline&label=vercel&labelColor=black&logo=vercel&style=flat-square&up_message=online&url=https%3A%2F%2Fui.agentx.vn