Skip to content

Vue 3 проект

Установка пакета

bash
pnpm add release-timeline
bash
pnpm add release-timeline
bash
npm install release-timeline

Использование во Vue компоненте

vue
<script setup>
import { ReleaseTimeline, DefaultOptions as options } from "release-timeline";
import "release-timeline/dist/style.css";
// import "release-timeline/dist/animated-background.css";

// repository to visualize
options.github.owner = "vuesence";
options.github.repo = "release-timeline";
</script>

<ReleaseTimeline :options="options" />

Подключение animated-background.css опционально. CSS со звездным небом занимает 70Kb, в gzip формате - 6.1Кб.