Installation

Get started with Kutsu by installing it via CDN or package manager.

CDN

The easiest way to add Kutsu to your project is using a CDN. Copy and paste the <script> tag near the end of your pages, right before the closing </body> tag.

Bundle

kutsu.bundle.js includes Popper.js for the Dropdown component positioning.

<script src="https://cdn.jsdelivr.net/npm/@jukanntenn/kutsu@latest/dist/kutsu.bundle.min.js"></script>

Standalone

If you don’t need Dropdown or want to use your own Popper.js version:

<script src="https://cdn.jsdelivr.net/npm/@jukanntenn/kutsu@latest/dist/kutsu.min.js"></script>

ES Modules

Kutsu supports ES modules for modern bundlers:

import { Offcanvas, Dropdown, Scrollspy } from '@jukanntenn/kutsu'

Package Managers

npm

npm install @jukanntenn/kutsu

pnpm

pnpm add @jukanntenn/kutsu

Yarn

yarn add @jukanntenn/kutsu