Skip to content

librark/componark

Repository files navigation

codecov

coverage sunburst

ComponArk

Pragmatic Web Components Library

Introduction

ComponArk is a lightweight Web Components library with a shared base class for consistency and event-driven composition.

The library is organized as custom elements that can be used directly in HTML or combined with your application code.

Reference

Components library

Components marked in bold are available in this repository.

Why this exists

  • Minimal, reusable base (Component) with lifecycle hooks and dependency resolution.
  • Template/event binding helper (listen) with custom attribute syntax.
  • Lightweight styling support with constructor stylesheet + fallback support.
  • Small test surface included with native Node test runner.

Basic usage

<ark-translate languages="en,es"></ark-translate>

<span data-i18n="hello">Hello</span>

Development

  • Run tests: npm test
  • Build production bundle: npm run prod
  • Start local dev server: npm run dev

Notes

Some older docs in the previous release referenced components that are not in the current snapshot of this repository. If you need one of those modules, check the release tags or open a request with expected parity.

About

Pragmatic Web Components

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors