Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@spectrum-web-components/core

Package Overview
Dependencies
Maintainers
9
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@spectrum-web-components/core

Abstract base classes for Spectrum Web Components

latest
Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
10K
-14.1%
Maintainers
9
Weekly downloads
 
Created
Source

@spectrum-web-components/core

Abstract base classes for Spectrum Web Components.

This package provides the behavior layer for 2nd-gen Spectrum Web Components and is not intended for direct external use. It is independent from 1st-gen — there is no runtime dependency between them.

For more information, visit the Spectrum Web Components repository.

Folder structure

The core package is private/internal, so we can organize foundational code for discoverability and incremental migration.

core/
  element/      # SpectrumElement, defineElement, and element infrastructure
  mixins/       # Reusable mixins (SizedMixin, ObserveSlotPresence, etc.)
  controllers/  # Reactive controllers (Lit controllers, observers, etc.)
  utils/        # Utility functions (DOM helpers, label extraction, etc.)
  components/   # Component base classes (already established)

Naming

All new folders and files in /core should be kebab-case.

Imports

Prefer the new top-level paths for new code:

  • @spectrum-web-components/core/element
  • @spectrum-web-components/core/mixins
  • @spectrum-web-components/core/controllers
  • @spectrum-web-components/core/utils

New code should use the top-level paths above.

Migration

See MIGRATION.md for guidance on where to place migrated code.

Keywords

design-system

FAQs

Package last updated on 12 May 2026

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