esdecode
Component library

Knack — Vanilla JS UI Components

No ratings
|0 Sales|by Roundhouse UI|v1.0.0
Knack — Vanilla JS UI Components screenshot 1
1 / 2

Preview and demo

Status: unchecked. Availability checks are not a security guarantee.

0
Sales
Rating
0
Reviews

Description

Knack is a small, dependency-free UI component library in vanilla JavaScript. Six polished, accessible components — Modal, Tabs, Accordion, Dropdown, Toast and Tooltip — that enhance ordinary HTML through data-knack-* attributes. Drop in one stylesheet and one script, write markup, done. No framework, no build step.

Highlights

  • Modal, Tabs, Accordion, Dropdown, Toast, Tooltip — accessible by default.
  • Declarative autoInit() via data-attributes, plus imperative class APIs.
  • ARIA roles, keyboard support, modal focus trap & scroll lock.
  • Custom events (knack:open/close/tabchange) for hooks.
  • CSS-variable theming in a single stylesheet.
  • Zero dependencies, no build step, ES modules — works with any framework or none.

Features

Six components: modal, tabs, accordion, dropdown, toast, tooltip
Dependency-free vanilla JS, no build step
Declarative autoInit() + imperative class APIs
Accessible: ARIA roles, keyboard, focus management
Toast variants (success/warning/danger/info)
Custom events for integration
CSS-variable theming (single stylesheet)
Works with any framework or plain HTML
node:test + jsdom test suite
Live showcase + component reference pages

Requirements

  • A modern browser
  • Node.js 18+ only to run the test suite
  • Any toolchain that supports ES modules

Changelog

**v1.0.0** (Latest) - Initial release - Modal, Tabs, Accordion, Dropdown, Toast, Tooltip - autoInit, theming, accessibility, jsdom test suite

Frequently Asked Questions

Does Knack require any frameworks, build tools, or dependencies to run?

No — Knack is completely dependency-free and requires no build step. Just drop in the single stylesheet and single script file, add data-knack-* attributes to your HTML markup, and everything works out of the box. It is written as ES modules and is compatible with any framework or plain HTML.

Which UI components are included, and are they accessible?

Knack includes six polished components: Modal, Tabs, Accordion, Dropdown, Toast, and Tooltip. Every component is accessible by default, with ARIA roles, full keyboard navigation, and focus management — the Modal also includes a focus trap and scroll lock.

How do I initialise and control the components — do I have to write JavaScript?

You can use the declarative autoInit() approach by simply adding data-knack-* attributes to your markup, which requires no custom JavaScript at all. If you need programmatic control, each component also exposes an imperative class API, and the library fires custom events (such as knack:open, knack:close, and knack:tabchange) so you can hook into component behaviour from your own code.

Can I customise the look and feel to match my brand?

Yes — theming is handled entirely through CSS variables defined in Knack's single stylesheet, so you can override colours, spacing, and other visual properties with just a few lines of CSS. No Sass, no build pipeline, and no need to edit the library's source files.

What Toast notification variants are available?

The Toast component ships with four built-in variants: success, warning, danger, and info. Each variant is styled distinctly out of the box and can be further customised via CSS variables.

Is there a test suite, and are there reference docs or a live demo I can explore before buying?

Yes — Knack includes a node:test and jsdom-based test suite to verify component behaviour. There are also live showcase and component reference pages available so you can interact with every component and review the API before making a purchase decision.

Technical requirements

  • See the detailed requirements in the product description below.

What is included

  • Component library package with full downloadable files
  • Product listing and product page guidance
  • Product files ready for self-hosting or integration
  • 10 listed features
  • Changelog included on the product page

Who is this product for

  • Buyers who need a component library rather than a custom build from scratch
  • Teams shopping within JS UI Components
  • Use cases aligned with ui components, vanilla js, modal, tabs

License and usage

  • Regular license for one end product where end users are not charged for access to the item itself
  • Extended license for one end product where end users can be charged
  • Verify the exact usage rights on the selected license before deployment or client handoff
  • Keep the purchase record and license certificate for future verification

Updates and support

  • 6 months of seller support included
  • Review the seller support scope before purchasing.
  • Recent changes are visible in the product changelog
  • Use the changelog to confirm ongoing maintenance before rollout

Technical details

Current version
1.0.0
Last updated
Jul 11, 2026
License options
Regular, Extended
Support period
6 months of seller support included

Marketplace review

Content review process

No completed marketplace review record is available for this product.

This is not a full penetration test or a guarantee that the product is vulnerability-free.

License comparison

A license is tied to one end product, not strictly to one domain. Development, staging, and the final production domain may belong to the same licensed deployment.

UseRegular LicenseExtended License
Source code modification
Own project use
One client project
One production deployment
Development and staging
Paid SaaS or paid user access
Multiple unrelated client projects
Redistribute source code
Resell source code
Read the full license terms →

License FAQ

Can I modify the source code?

Yes, under both licenses.

Can I use the script for a client?

Yes, for one client end product.

Can I install it on a staging domain?

Yes. Development and staging may belong to the licensed deployment.

Do I need another license for another client?

Yes, each unrelated client end product needs its own license.

Can I use it for a paid SaaS?

Yes, with an Extended License.

Can I resell the source code?

No. Standalone redistribution or resale is prohibited.

Is a license limited strictly to one domain?

No. It is tied to one end product, which may use development, staging, and production domains.

$19.00

For one end product — free to end users

Price$15.00
VAT 23%$3.45
Rounding adjustment$0.55
Total$19.00
Instant digital download
Review scope shown below
Recent product changes listed in the changelog
6 months of seller support included

Item Details

Last Update
July 11, 2026
Published
June 9, 2026
Version
1.0.0
Sales
0
Reviews
No reviews

Share This Item

License Info

Regular License — Use in one end product which end users are not charged for.

Extended License — Use in one end product which end users can be charged for.

Verify a license key →