Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@patternfly/pfe-core

Package Overview
Dependencies
Maintainers
16
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@patternfly/pfe-core

PatternFly Elements Core Library

  • 2.0.0-next.9
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.8K
decreased by-49.95%
Maintainers
16
Weekly downloads
 
Created
Source

@patternfly/pfe-core

Utilities for building PatternFly elements.

Controllers

  • CascadeController - cascades configured properties/attributes to child elements
  • ColorContextController - enables colour context detection
  • CssVariableController - caches computed styles
  • LightDOMController - controls a light-DOM mutation observer
  • Logger - logging utilities
  • PerfController - measures element upgrading performance
  • PropertyObserverController - caches set values for observed properties until element is updated
  • SlotController - utilities for managing slots and slotted content

Decorators

  • @bound - binds a decorated method to the object instance
  • @cascades - cascades the decorated property to configured light and shadow child elements
  • @initializer - executes a decorated method when the element upgrades and on DOM mutations (opt-out)
  • @observed - runs a callback when the decorated property changes
  • @pfelement - enabled body auto-reveal as well as colour context and other PFE features
  • @time - tracks the time a method takes to complete using the performance API
  • @trace - debug decorator which logs the name and result of a class method whenever it runs

Directives

  • when - element-position directive which adds or removes an element depending on a condition

Functions

  • debounce - debounce a function
  • deprecatedCustomEvent - create (deprecated) composed CustomEvents
  • getRandomId - generate a random element ID, optionally with a given prefix

Keywords

FAQs

Package last updated on 03 Oct 2022

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc