🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@cldn/components

Package Overview
Dependencies
Maintainers
3
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cldn/components

Base classes for web components

4.1.1
latest
Source
npm
Version published
Maintainers
3
Created
Source

@cldn/components

Base classes for creating web components.

This library is intended for use in a web browser environment. A bundler, such as Webpack or Vite is recommended.

Documentation

Installation

npm i @cldn/components

Usage

To create your own components, it's recommended to extend one of the classes provided in this library.

For example:

import {Component} from "@cldn/components";

class ButtonComponent extends Component<HTMLButtonElement> {
    public constructor(text: string) {
        super("button");
        this.text(text)
            .class("bg-blue-500", "px-4", "…");
    }
}

Licence

Copyright © 2024–2025 Cloudnode OÜ.

This file is part of @cldn/components.

@cldn/components is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

@cldn/components is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with @cldn/components. If not, see https://www.gnu.org/licenses/.

Keywords

web

FAQs

Package last updated on 20 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts