@bottle414/bottle-ui
📘 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
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
Version History
| Version | Released | License |
|---|---|---|
| 3.1.1 | ||
| 3.1.0 | ||
| 3.0.2 | ||
| 3.0.1 | ||
| 3.0.0 | ||
| 2.2.0 | ||
| 2.1.6 | ||
| 2.1.5 | ||
| 2.1.4 | ||
| 2.1.3 | ||
| 2.1.2 | ||
| 2.1.1 | ||
| 2.1.0 | ||
| 2.0.0 | ||
| 1.0.3 | ||
| 1.0.2 | ||
| 1.0.1 | ||
| 1.0.0 |