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

@phila/phila-ui-callout

v1.0.1

Published

A vue component for displaying important messages and warnings.

Readme

Phila Callout Component

Status: Stable

A collapsible callout for highlighting important messages and warnings. Clicking the header toggles the body open/closed; the open state can also be driven externally via v-model:open.

Installation

pnpm add @phila/phila-ui-callout @phila/phila-ui-core
# or
npm install @phila/phila-ui-callout @phila/phila-ui-core

Import core styles in your main entry file (e.g., main.js|ts):

import "@phila/phila-ui-core/styles/template-light.css";

Usage

Basic

<script setup lang="ts">
import { Callout } from "@phila/phila-ui-callout";
</script>

<template>
  <Callout title="This is the title" message="Informational message" type="info" />
</template>

With custom content

The default slot replaces message when provided:

<template>
  <Callout title="This is the title" type="info" :open="true">
    Need help applying? Visit the
    <a href="https://www.phila.gov" target="_blank" rel="noopener">City of Philadelphia website</a>
    for the latest information and resources.
  </Callout>
</template>

Controlled

<script setup lang="ts">
import { ref } from "vue";
import { Callout } from "@phila/phila-ui-callout";

const isOpen = ref(false);
</script>

<template>
  <button type="button" @click="isOpen = !isOpen">{{ isOpen ? "Close" : "Open" }}</button>
  <Callout title="Programmatically controlled" message="Driven from outside via v-model:open." v-model:open="isOpen" />
</template>

Types

<Callout title="Info" message="..." type="info" />
<Callout title="Warning" message="..." type="warning" />
<Callout title="Error" message="..." type="error" />
<Callout title="Success" message="..." type="success" />

Each type renders its own icon (info circle, triangle exclamation, circle exclamation, circle check, respectively) from @phila/phila-ui-core/icons.

Props

| Prop | Type | Default | Description | | ----------- | --------------------------------------------- | ----------- | --------------------------------------------------------------- | | title | string | "" | Title text shown in the header (always visible). | | message | string | "" | Body text shown when open. Ignored if the default slot is used. | | type | "info" \| "warning" \| "error" \| "success" | "info" | Callout type — controls color and icon. | | open | boolean | false | Whether the body is expanded (v-model:open). | | className | string | undefined | Additional CSS classes. |

Slots

| Slot | Description | | --------- | -------------------------------------------------------------- | | default | Body content shown when open, replacing message if provided. |

Development

Install Dependencies

pnpm install

Run Demo

pnpm dev

Run lint

pnpm lint

Create Production Build

pnpm build

Publishing to NPM

Follow the release instructions using changesets.

License

MIT