# Bigin UI - A Vue.js 3 UI library for BigIn Design System

<p align="center">
  <img width="160px" src="https://raw.githubusercontent.com/tammai/bigin/main/logo.svg">
</p>

<p align="center">
  <a href="https://www.npmjs.org/package/bigin-ui">
    <img src="https://img.shields.io/npm/v/bigin-ui.svg">
  </a>
  <a href="https://npmcharts.com/compare/bigin-ui?minimal=true">
    <img src="https://img.shields.io/npm/dm/bigin-ui.svg">
  </a>
  <a href="https://github.com/biginx/bigin-ui/blob/main/LICENSE">
    <img src="https://img.shields.io/npm/l/bigin-ui.svg">
  </a>

  <br>
</p>

Bigin UI is the Vue 3 component library of the BigIn Design System. It is based on
[Element Plus](https://element-plus.org) and has been customized to fit our design
system, so its API is no longer compatible with Element Plus.

- Documentation: <https://bdsv3.netlify.app/>
- Playground: [CodeSandbox](https://codesandbox.io/s/bigin-ui-demo-fsc42v)
- Source code and issues: <https://github.com/biginx/bigin-ui>

## Compatibility

| bigin-ui | Status                         | Vue        | Nuxt (optional) | Node.js (build tooling)   |
| -------- | ------------------------------ | ---------- | --------------- | ------------------------- |
| `2.0.x`  | **Active**                     | `>=3.5.0`  | `3.x`, `4.x`    | `^20.19.0 \|\| >=22.12.0` |
| `1.1.x`  | Maintenance (until 2027-04-30) | `>=3.2.41` | `3.x`           | `>=16`                    |
| `<=1.0`  | End of life                    | -          | -               | -                         |

- We recommend running a Node.js release line that still receives security updates
  (22.x or 24.x at the time of writing). Node.js 20 reached end of life and does not
  receive security fixes.
- Nuxt 3 reached end of life on 2026-07-31. New projects should use Nuxt 4.
- See [Support policy](#support-policy) for what each status means.

### Browser support

Modern evergreen browsers (Chrome, Edge, Firefox, Safari) matching the
`browserslist` query `> 1%, not ie 11, not op_mini all`. Internet Explorer is not
supported.

## Installation

```sh
# pnpm (recommended)
pnpm add bigin-ui

# npm
npm install bigin-ui

# yarn
yarn add bigin-ui
```

## Quick start

### Vue

```ts
// main.ts
import { createApp } from 'vue'
import BiginUI from 'bigin-ui'
import 'bigin-ui/dist/index.css'
import App from './App.vue'

const app = createApp(App)

app.use(BiginUI)
app.config.compilerOptions.isCustomElement = (tag) =>
  ['lottie-player'].includes(tag)
app.mount('#app')
```

For on-demand import and theming, see
[Getting Started](https://bdsv3.netlify.app/getting-started/).

### Nuxt

```ts
// nuxt.config.ts
export default defineNuxtConfig({
  css: ['bigin-ui/dist/index.css'],
  modules: ['bigin-ui/es/nuxt'],
})
```

Works with Nuxt 3 and Nuxt 4. The module:

- auto-registers components with the `B` prefix (for example `<BButton>`),
- auto-imports `BMessage`, `BMessageBox`, `BNotification` and `BLoadingService`,
- registers the `v-loading`, `v-infinite-scroll` and `v-popover` directives,
- provides a fixed id prefix so server and client render the same ids (SSR hydration).

Do not also call `app.use(BiginUi)` in a Nuxt plugin: everything is already
registered by the module, and Vue warns that the plugins are applied twice.

## Versioning and release channels

Bigin UI follows [Semantic Versioning](https://semver.org):

- **Patch** (`2.0.x`): bug fixes and security fixes only.
- **Minor** (`1.x.0`): new features, backward compatible.
- **Major** (`x.0.0`): breaking changes, including raising the minimum supported
  version of Vue, Nuxt or Node.js.

Releases are published to npm with these dist-tags:

| dist-tag        | Content                                                  |
| --------------- | -------------------------------------------------------- |
| `latest`        | Latest stable release of the active version line         |
| `next`          | Pre-releases (`-beta`, `-rc`) of the upcoming version    |
| `lts-<version>` | Latest release of a line in maintenance (e.g. `lts-1.1`) |

To stay on a maintenance line, pin it in your `package.json` with a tilde range
(for example `"bigin-ui": "~1.1.121"`) or install it via its dist-tag
(`pnpm add bigin-ui@lts-1.1`). A caret range such as `^1.1.0` never upgrades to
`2.x`.

Release notes are recorded in [CHANGELOG.md](https://github.com/biginx/bigin-ui/blob/main/CHANGELOG.md). Breaking changes are
listed in the [`breakings`](https://github.com/biginx/bigin-ui/tree/main/breakings) directory and in the migration guides of
the documentation.

## Support policy

| Status          | What you get                                                                 |
| --------------- | ---------------------------------------------------------------------------- |
| **Active**      | New features, bug fixes and security fixes.                                  |
| **Maintenance** | Security fixes and critical bug fixes only, backported from the active line. |
| **End of life** | No further releases. Please upgrade.                                         |

- When a new major version is released, the previous major enters **Maintenance**
  for at least **6 months**. The end date is announced in this README and in
  [SECURITY.md](https://github.com/biginx/bigin-ui/blob/main/SECURITY.md).
- Only the latest minor release of each supported line receives fixes (for example
  fixes for `1.1.x` are released as a new `1.1.x` patch).
- `2.0.0` raised the minimum versions to Vue 3.5 and Node.js 20. `1.1.x` is kept
  in **Maintenance** until 2027-04-30 for projects that cannot upgrade yet.

## Security

Please do **not** report vulnerabilities in public issues. See
[SECURITY.md](https://github.com/biginx/bigin-ui/blob/main/SECURITY.md) for how to report them privately and which versions
receive security fixes.

## Contributing

Contributions are welcome. Please read the [Contributing Guide](https://github.com/biginx/bigin-ui/blob/main/CONTRIBUTING.md),
[Local Development](https://github.com/biginx/bigin-ui/blob/main/LOCAL_DEV.md) and our [Code of Conduct](https://github.com/biginx/bigin-ui/blob/main/CODE_OF_CONDUCT.md)
before opening a merge request. Maintainers can find the release and backport
process in [RELEASING.md](https://github.com/biginx/bigin-ui/blob/main/RELEASING.md).

## License

Bigin UI is open source software licensed as
[MIT](https://github.com/biginx/bigin-ui/blob/main/LICENSE).

Bigin UI contains code derived from [Element Plus](https://github.com/element-plus/element-plus),
also licensed under MIT, Copyright (c) 2020-PRESENT Element Plus. We respect and
really appreciate the hard work of the Element Plus team.
