New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@cpelements/pfe-navigation-account

Package Overview
Dependencies
Maintainers
4
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cpelements/pfe-navigation-account

Navigation account element for PatternFly Elements

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
18
increased by157.14%
Maintainers
4
Weekly downloads
 
Created
Source

PatternFly Element | Navigation account element

This is a companion component with pfe-navigation, it creates an account dropdown in conjunction with cpx-user.

Usage

Describe how best to use this web component along with best practices.

<pfe-navigation-account login-url="/login"></pfe-navigation-account>

Attributes

  • pfe-login-link: Link to login user, required for anonymous users non-keycloack implementations will be put directly into an <a> tag.
  • pfe-logout-link: Link to logout user, required for logged in users non-keycloack implementations will be put directly into an <a> tag.
  • pfe-avatar-url: Provided by the component, used by pfe-navigation
  • pfe-full-name: Provided by the component, used by pfe-navigation

Variable hooks

@todo Available hooks for styling:

Variable nameDefault valueRegion
--pfe-pfe-navigation-account--Color#252527N/A

Events

@todo Describe any events that are accessible external to the web component. There is no need to describe all the internal-only functions.

Dependencies

Requires @chapeaux/cpx-user component to function

Dev

`npm start`

Test

`npm run test`

Build

`npm run build`

Demo

From the PFElements root directory, run:

`npm run demo`

Code style

Navigation-account (and all PFElements) use Prettier to auto-format JS and JSON. The style rules get applied when you commit a change. If you choose to, you can integrate your editor with Prettier to have the style rules applied on every save.

Keywords

FAQs

Package last updated on 01 Feb 2021

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