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

@ynetlabo/ui-vue

v0.1.4

Published

ui-labo の Vue 向けラッパー。core のカスタム要素を v-model と型付きの props で使えるようにする

Readme

@ynetlabo/ui-vue

ui-labo の Vue 3 向けラッパー。 @ynetlabo/ui-core のカスタム要素を、 v-model と型付きの props で使えるようにします。

デモとドキュメント

npm install @ynetlabo/ui-vue
<script setup>
import { ref } from "vue";
import { YnPrefecturePicker } from "@ynetlabo/ui-vue";
import "@ynetlabo/ui-tokens/dist/tokens.css";

const pref = ref(null);
</script>

<template>
  <YnPrefecturePicker v-model="pref" name="pref" code-format="jis" />
</template>

app.use() でまとめて登録もできます。

import YnLaboUi from "@ynetlabo/ui-vue";
app.use(YnLaboUi);

使い勝手のためにしていること

  • isCustomElement の設定が要りません。 レンダー関数で書いているため、 テンプレートコンパイラを通りません
  • SSR を通せます。 要素の登録は onMounted の動的 import に寄せてあるので、 サーバでは空の要素が出るだけです。<client-only> で囲む必要はありません
  • 指定しなかった prop は既定を倒しません。 例えば searchable は既定が真ですが、 書かなければ真のままです

props

modelValue(v-model)のほか、core と同じ指定が使えます。

selectionLevel / multiple / codeFormat / grouping / layout / display / searchable / placeholder / disabled / required / invalid / name / transition / mode / footer / items

意味と取りうる値はコンポーネントのページにあります。

イベント

| | | |---|---| | update:modelValue | 選択が変わったとき。値は codeFormat に従う(複数選択では配列) | | change | 下地のカスタム要素の CustomEvent をそのまま渡す |

下地の要素に触る

<YnPrefecturePicker ref="picker" />
picker.value.element   // <yn-prefecture-picker>

MIT © Yuuki.U (ynetlabo)