New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@canceyd/wc-ui-library

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@canceyd/wc-ui-library

A modern UI library built with vanilla web components, TypeScript, and Vite.

latest
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

Web Components UI Library

A modern UI library built with vanilla web components, TypeScript, and Vite.

Installation

npm install wc-npm-starter

Usage

ES Modules

import "wc-npm-starter"

UMD

<script src="https://unpkg.com/wc-npm-starter/dist/wc-ui-library.umd.js"></script>

Components

Button Component

The ds-button component provides a flexible button with multiple variants and configurations.

Basic Usage

<ds-button>Click me</ds-button>

Variants

<ds-button variant="default">Default</ds-button>
<ds-button variant="secondary">Secondary</ds-button>
<ds-button variant="destructive">Destructive</ds-button>
<ds-button variant="outline">Outline</ds-button>
<ds-button variant="ghost">Ghost</ds-button>
<ds-button variant="link">Link</ds-button>

Sizes

<ds-button size="small">Small</ds-button>
<ds-button size="medium">Medium</ds-button>
<ds-button size="large">Large</ds-button>

States

<ds-button disabled>Disabled</ds-button> <ds-button loading>Loading</ds-button>
<ds-button linkable href="https://example.com" new-tab>
  External Link
</ds-button>

Icon Only

<ds-button icon-only size="small">
  <svg>...</svg>
</ds-button>

Development

Setup

npm install

Development Server

npm run dev

Build

npm run build

Storybook

npm run storybook

API Reference

Button Props

PropTypeDefaultDescription
variant'default' | 'secondary' | 'destructive' | 'outline' | 'ghost' | 'link''default'Button style variant
size'small' | 'medium' | 'large''medium'Button size
disabledbooleanfalseDisable the button
loadingbooleanfalseShow loading state
linkablebooleanfalseRender as anchor tag
hrefstring'#'URL for linkable buttons
new-tabbooleanfalseOpen link in new tab
icon-onlybooleanfalseButton with icon only
type'button' | 'submit' | 'reset''button'Button type
auto-focusbooleanfalseAuto focus on mount

TypeScript Support

The library includes full TypeScript support with type definitions:

import { DsButton, ButtonProps } from "wc-npm-starter"

// TypeScript will provide full intellisense
const button = document.createElement("ds-button") as DsButton

Browser Support

  • Chrome 67+
  • Firefox 63+
  • Safari 11.1+
  • Edge 79+

License

MIT

Keywords

web-components

FAQs

Package last updated on 18 Jun 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