Komps on GitHub
Komps is a library of style-less Web Components for building UIs. Komps is platform-agnostic, and each component is fully tree-shakeable by any bundler.

Installation

npm install komps

Usage

Import only the components you use:

import { Modal } from 'komps';

new Modal({ content: "Hello World" });

Tree-Shaking

For smaller bundles, import components directly instead of from the barrel:

import Modal from 'komps/modal';
import Table from 'komps/table';

Each component self-registers as a custom element when imported. Sub-components (e.g., TableRow, TableCell) are registered automatically through the import chain — no extra setup needed.