@bottle414/bottle-ui

A self-made component library for Vue3.
789
Install
npm install @bottle414/bottle-ui
Latest Version:3.1.1
Last Updated:May 20, 2025
Links: npm
Maintainer: bottle414

📘 English | 📙 简体中文

Bottle-UI Component Library 🎉

Hi! This is a Vue 3 component library I built to practice component encapsulation, communication, TypeScript usage, and CSS skills.
It's also my final project for a Web development course. 🦝

Live Documentation (Vercel): https://bottle-ui-eta.vercel.app

npm version downloads license

Installation 🔧

npm
npm i @bottle414/bottle-ui
pnpm
  pnpm i @bottle414/bottle-ui
yarn
  yarn add @bottle414/bottle-ui

Usage 📏

Import styles

import '../node_modules/@bottle414/bottle-ui/dist/shared.css'

(Optional) Enable Volar type support

import '../node_modules/@bottle414/bottle-ui/dist/types/bottle-ui.es.d.ts'

Import components

You can import globally or just the ones you need.

Global Import 🌟
import { createApp } from 'vue'
import App from './App.vue'
import BottleUI from '@bottle414/bottle-ui'

const app = create(App)
app.use(BottleUI)
app.mount()
Partial Import 🍊

You can register components at the entry point:

import { createApp } from 'vue'
import App from './App.vue'
import { BButton, BIcon } from '@bottle414/bottle-ui'

const app = createApp(App)
app.use(BButton)
app.use(BIcon)
app.mount('#app')

Or import them directly inside a component:

<template>
    <BButton> Hello! <BButton/>
<template/>

<script>
    import { BButton } from '@bottle414/bottle-ui'
<script/>

And you're ready to go! 🎉🦝

Related Packages

naive-ui

A Vue 3 Component Library. Fairly Complete, Theme Customizable, Uses TypeScript,...

6,454,403 18,588
giime

A Component Library for Vue 3

16,579
next-ui3

A Component Library base on Element Plus for Vue 3

11,049
greeks-live-ui

A Component Library for Vue 3

9,866
topdatasec-ui

A Component Library for Vue 3

8,407

Version History

Version Released License
3.1.1
3.1.0
3.0.2
3.0.1
3.0.0