Skip to content

bemky/komps

Repository files navigation

Dolla

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. Documentation

Dependencies

Dolla

Floating UI

Installation

npm install komps

Usage

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.

Documentation

Checkout details about each method on komps.js.org

Development

Testing

npm test

Documentation

Documentation is built with JSDoc and deployed to GitHub Pages via GitHub Actions on push to main.

npm run docs          # build once
npm run docs:watch    # rebuild on changes
npm run docs:serve    # serve locally

Release

npm publish

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors