EBT-Vue: SuttaCentral Vue/Vuetify Components

1.55.3312 · active · verified Sun Apr 19

ebt-vue is a specialized Vue 2 and Vuetify-based component library meticulously crafted for the EBT-Site project, which is integral to the SuttaCentral and SuttaCentral Voice initiatives. It delivers a collection of reusable UI components specifically tailored for applications that handle Pali texts, the Buddha's teachings, and Sutta translations, likely integrating with `bilara-data`. The package's current stable version is 1.55.3312, suggesting an active development lifecycle with frequent minor updates and patches. Its primary differentiator lies in its deep integration with the specific domain of Buddhist texts and the SuttaCentral ecosystem, providing purpose-built UI solutions rather than general-purpose components. The library's release cadence appears consistent, reflecting ongoing development efforts for its target application.

Common errors

Warnings

Install

Imports

Quickstart

Demonstrates how to set up a basic Vue 2 application, import EBT-Vue and Vuetify, and render a simple component from the library, including typical Vuetify integration.

import Vue from 'vue';
import Vuetify from 'vuetify';
import 'vuetify/dist/vuetify.min.css';

// Assuming named exports for individual components
import { EbtToolbar, EbtCard } from 'ebt-vue';

// Initialize Vuetify globally before your Vue instance
Vue.use(Vuetify);

new Vue({
  el: '#app',
  vuetify: new Vuetify(), // Pass a new Vuetify instance to Vue
  components: {
    EbtToolbar,
    EbtCard
  },
  template: `
    <v-app>
      <v-main>
        <v-container>
          <ebt-toolbar title="SuttaCentral Browser">
            <v-btn icon><v-icon>mdi-magnify</v-icon></v-btn>
            <v-btn icon><v-icon>mdi-dots-vertical</v-icon></v-btn>
          </ebt-toolbar>
          <ebt-card title="Example Sutta" class="mt-4">
            <p>This is a hypothetical card component displaying Sutta content.</p>
            <p>The card can be used to encapsulate text, metadata, or other UI elements relevant to the EBT-Site project. Ensure all peer dependencies like Vue and Vuetify are correctly installed and configured.</p>
            <v-btn color="primary">Read More</v-btn>
          </ebt-card>
          <p class="mt-5">This quickstart demonstrates the setup of an EBT-Vue application, integrating it with Vue 2 and Vuetify. It shows how to import and register components for immediate use. For a full application, consider global registration via a plugin if available.</p>
        </v-container>
      </v-main>
    </v-app>
  `
});

view raw JSON →