Getting Started
Prerequisites
- Node.js 18.x or higher
- npm, yarn, or pnpm package manager (
npmis installed with Node.js out of the box)
Install Bamboo
bash
npm install @mrksbnc/bamboobash
yarn add @mrksbnc/bamboobash
pnpm add @mrksbnc/bamboobash
bun add @mrksbnc/bambooUsage
- Register the library
cssfile in your root entry.
ts
// main.ts
import { createApp } from 'vue'
import App from './App.vue'
// Import the main library CSS file
import '@mrksbnc/bamboo/lib.css'
createApp(App).mount('#app')- Import the components you want to use.
ts
<template>
<bo-text value="Hello Bamboo" />
<bo-icon :icon="Icon.heart" />
<bo-icon :icon="Icon.star" custom-color="var(--blue-600)" />
</template>
<script setup lang="ts">
import { BoText, BoIcon, Icon } from '@mrksbnc/bamboo'
</script>