
Security News
Vite+ Joins the Push to Consolidate JavaScript Tooling
Evan You announces Vite+, a commercial, Rust-powered toolchain built on the Vite ecosystem to unify JavaScript development and fund open source.
@pnx-mixtape/elevator
Advanced tools
Documentation and examples: Elevator
npm install @pnx-mixtape/elevator --save
CSS
@import '@pnx-mixtape/elevator';
@import url('dist/elevator.css');
<link href="dist/elevator.css" rel="stylesheet" type="text/css">
Web Components
Web Components are self defined, simply import the desired feature. These do not use the Shadow DOM. External CSS applies.
import '@pnx-mixtape/elevator/ElevatorBase';
and be sure to include <mx-elevator>
around the <nav />
tag.[data-content]
attribute to specify where to look for headings (required).[data-headings]
attribute to customise the heading levels. Default is h2.<mx-elevator data-content=".page__sections" data-headings="h2, h3">
<nav class="elevator nav nav--jump">
<h4>Jump to Section</h4>
<ul></ul>
</nav>
</mx-elevator>
<div class="page__sections">
<h2 id="section">Section title</h2>
</div>
See twig files for all HTML examples.
Vanilla JS (to be deprecated)
import { Elevator, ElevatorOverflow } from '@pnx-mixtape/elevator';
import ElevatorOverflow from '@pnx-mixtape/elevator/elevator-overflow';
<script src="dist/elevator.js" type="text/javascript"></script>
HTML
<nav data-elevator class="elevator nav nav--jump">
<h4>Jump to Section</h4>
<ul></ul>
</nav>
<div class="page__sections">
<h2 id="section">Section title</h2>
</div>
FAQs
elevator component
We found that @pnx-mixtape/elevator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Evan You announces Vite+, a commercial, Rust-powered toolchain built on the Vite ecosystem to unify JavaScript development and fund open source.
Security News
Ruby Central’s incident report on the RubyGems.org access dispute sparks backlash from former maintainers and renewed debate over project governance.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.