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

slidev-addon-announcement

v0.1.5

Published

A slidev component addon to provide 'announcements'

Downloads

79

Readme

Announcement - a Slidev Addon Component

A small component to add an announcement to a page.

Visits

Latest Update NPM version

  • Fix errors in ReadMe.md

Installing Announcements

To add to your Slidev presentation use:

pnpm i slidev-addon-announcement --save

Alternatively, add to the addons section in your package.json:

"slidev": {
    "addons": [
        "slidev-addon-announcement"
    ]
}

Add the following to your slides.md:

---
addons:
  - announcement
---

Using Announcement

Used in the form:

<Announcement type="TYPE_IDENTIFIER" title="OPTIONAL_TITLE" PARAMETERS >
    Just something to think about
</Announcement>

Types

  • Types:
    • type="type_identifier"
    • where type_identifier is one of:
      • brainstorm
      • duration
      • idea
      • default
      • info
      • important
      • priority
      • warning
      • error

Parameters (PARAMETERS)

Replace the PARAMETERS with the option(s) you wish to employ.

The PARAMETERS are:

  • compact or compact="true|false"
    • A smaller sized version
    • Optional
    • Default false (also when omitted)
  • title="..."
    • Title text (...) shown before the slot content
    • Optional
  • inline or inline="true|false"
    • Allow multiple announcements on a line
    • Optional
    • Default false (also when omitted)
  • width="fit|full"
    • Resizes the announcement to full or content width
    • Optional
    • Default fit (also when omitted)
    • Resizes to full width
    • Or fit to content

Examples of Announcement Component

The variants are shown below:

Default Note

vivaldi_ud7iYfpT7l.png

<Announcement type="default" title="Default Note">
    Just something to think about
</Announcement>

Idea

vivaldi_o9dXLjuo1a.png

<Announcement type="idea" title="Idea" >
    A useful idea could be identified using this variant
</Announcement>

Brainstorm

vivaldi_YItAahbh7Y.png

<Announcement type="brainstorm" title="Brainstorm" inline>
    Use to identify when brainstorming of ideas is an activity
</Announcement>

Duration

vivaldi_QhRet6gn7X.png

<Announcement type="duration" title="Duration" >
    Use to identify how long a section could take
</Announcement>

Error

vivaldi_3mJ3v6YlCy.png

<Announcement type="error" title="Error" >
    Identify common errors, boo-boos and actual errors
</Announcement>

Warning

vivaldi_rVNJT6RFoH.png

<Announcement type="warning" >
    Warn when an action could be dangerous, or should carefully be completed
</Announcement>

Information

vivaldi_nSxFPsnSoG.png

<Announcement type="info" >
    Information that could be useful for the current section
</Announcement>

Important

vivaldi_EDp0SqaIXh.png

<Announcement type="important" title="Important">
    When it is really important to complete an action
</Announcement>

Priority

vivaldi_fyGBubZXgz.png

<Announcement type="priority" compact width="full">
    Do or Read this before you do anything else
</Announcement>

Overriding icons

vivaldi_6HFCXMNsjS.png

<Announcement type="info" title="Heads up">
    Custom icon via slot
    <template #icon>
        <i class="i-fa7-solid-user-ninja h-5 w-5 mt-0.5"></i>
    </template>
</Announcement>

Requirements

Following packages are required for use:

  • 'unocss'
  • '@iconify-json/fa7-brands'
  • '@iconify-json/fa7-regular'
  • '@iconify-json/fa7-solid'
  • '@unocss/preset-icons'

You may manually install these using:

npm

npm i -D @unocss/preset-icons unocss
npm i -D @iconify-json/fa7-brands @iconify-json/fa7-regular 
npm i -D @iconify-json/fa7-solid

pnpm

pnpm i -D @unocss/preset-icons unocss
pnpm i -D @iconify-json/fa7-brands @iconify-json/fa7-regular 
pnpm i -D @iconify-json/fa7-solid 

Learn more about Slidev at the documentation.