npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

overlayer-ui

v1.1.3

Published

> A premium, high-fidelity Vue 3 UI component library based on Overlayer V5 aesthetics.

Readme

overlayer-ui

A premium, high-fidelity Vue 3 UI component library based on Overlayer V5 aesthetics.

overlayer-ui provides high-fidelity, interactive components including buttons, toggles, sliders, and dropdowns, with smooth micro-animations, customizable outlines, and a built-in decoupled state manager.


Features

  • Harmonious Dark Theme: Specifically tailored using a premium color palette (#3C3A4B, #919AFF, #6C78FF).
  • Interactive Micro-Animations: Outline glows on hover, click animations, and smooth transitions.
  • Value-Change Dot Indicators: Automatically signals to users when a component's current value differs from its default.
  • Middle-Click to Reset: Instantly restore default state with a scroll-wheel click.
  • Decoupled i18n Sync: Built-in reactive state synchronization with any external internationalization library (e.g. vue-i18n).

Installation

npm install overlayer-ui
# or
bun add overlayer-ui

Setup & Basic Usage

Import the CSS styles and register components individually or globally in your Vue 3 application.

1. Style Import

Import the CSS styles in your main entry file (e.g., main.ts or app.vue):

import 'overlayer-ui/dist/overlayer-ui.css'

2. Basic Component Usage

<template>
  <div class="settings-panel">
    <!-- Dropdown Selection -->
    <UIDropdown
      v-model="state.language"
      :default-value="defaults.language"
      :values="['en-US', 'ko-KR']"
      :display="val => val"
    />

    <!-- Toggle Switch -->
    <UIToggle
      v-model="state.active"
      :default-value="defaults.active"
      label="Enable Overlay"
    />

    <!-- Range Slider -->
    <UISlider
      v-model="state.uiScale"
      :default-value="defaults.uiScale"
      :min="0.8"
      :max="1.6"
      label="UI Scale"
      format="0.00x"
    />

    <!-- Button -->
    <UIButton label="Apply Settings" @click="handleApply" />
  </div>
</template>

<script setup lang="ts">
import {
  UIButton,
  UIToggle,
  UISlider,
  UIDropdown,
  useOverlayerState
} from 'overlayer-ui'

const { state, defaults } = useOverlayerState()

const handleApply = () => {
  console.log('Current settings:', state)
}
</script>

State & API Details

Global State Management (useOverlayerState)

The library comes with a lightweight, client-side persistent state manager that handles options and tooltips.

const {
  state,           // Reactive settings object (saves to localStorage on changes)
  defaults,        // Readonly default settings object
  loadSettings,    // Load settings from localStorage (client-side only)
  resetKey,        // Reset a specific key to default, e.g. resetKey('uiScale')
  resetAll,        // Reset all settings to defaults
  
  // Tooltip APIs
  tooltipText,
  tooltipVisible,
  tooltipX,
  tooltipY,
  showTooltip,
  hideTooltip
} = useOverlayerState()

Syncing with custom i18n (setI18nLocaleRef)

To synchronize the state's language with your app's standard vue-i18n locale, register the locale ref using setI18nLocaleRef:

import { useI18n } from 'vue-i18n'
import { setI18nLocaleRef } from 'overlayer-ui'

const i18n = useI18n()
setI18nLocaleRef(i18n.locale) // Any changes to state.language will now update i18n.locale automatically.

Component Reference

UIButton

A simple high-fidelity button with hover/active transitions.

  • Props:
    • label: string (Optional) - Button text.
    • blocked: boolean (Default: false) - Disabled state.

UIToggle

A checkbox/toggle element showcasing a custom hollow/filled circle animation.

  • Props:
    • modelValue: boolean (Required) - Binding value.
    • defaultValue: boolean (Required) - Used to check if value changed.
    • label: string (Optional) - Display label.
    • blocked: boolean (Default: false) - Disable interactions.
    • disableReset: boolean (Default: false) - Disable middle-click reset.

UISlider

A precision slider for selecting numeric scales or values. Supports middle-click reset.

  • Props:
    • modelValue: number (Required) - Binding value.
    • defaultValue: number (Required) - Used to check if value changed.
    • min: number (Required) - Minimum value.
    • max: number (Required) - Maximum value.
    • label: string (Optional) - Display label.
    • format: '0.00x' | undefined - Value formatting preset.
    • blocked: boolean (Default: false) - Disable interactions.
    • disableReset: boolean (Default: false) - Disable middle-click reset.

UIDropdown

A customizable dropdown menu supporting generic item types.

  • Props:
    • modelValue: T (Required) - Selected item.
    • defaultValue: T (Required) - Used to check if value changed.
    • values: T[] | readonly T[] (Required) - List of selectable options.
    • display: (item: T) => string (Required) - Mapping function to convert items to labels.
    • blocked: boolean (Default: false) - Disable interactions.
    • disableReset: boolean (Default: false) - Disable middle-click reset.

License

GPLv3