Skip to content

Primi Passi

Installazione

bash
npm install @bturkis/datepicker
# or
pnpm add @bturkis/datepicker
# or
yarn add @bturkis/datepicker
# or
bun add @bturkis/datepicker

Configurazione

Vue 3 -- Registrazione Globale

ts
import { createApp } from "vue";
import BtDatePicker from "@bturkis/datepicker";
import "@bturkis/datepicker/style.css";
const app = createApp(App);
app.use(BtDatePicker);
app.mount("#app");

Nuxt 3 / Nuxt 4

ts
export default defineNuxtConfig({
  modules: ["@bturkis/datepicker/nuxt"],
});

Il modulo gestisce tutto automaticamente: iniezione CSS, registrazione del componente in client-only.

Tema

Il componente viene con tema scuro di default. Il tema chiaro si attiva automaticamente o manualmente:

html
<html data-theme="light"></html>

Released under the MIT License.