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

@visual-framework/vf-flag

v1.0.0

Published

vf-flag component

Readme

The Flag Layout Component

npm version

About

The vf-flag layout component is for when you need an image, icon, or other media and text next to each other.

Usage

The vf-flag should, ideally, be used as part of a component with existing components for the media item and body area.

You should use the vf-flag layout component when you need to display a media item (avatar, image, logo) next to or after text.

The 'Flag Object', originally created by Harry Roberts is based on the work Nicole Sullivan did in creating the 'Media Object'.

The vf-flag allows you to determine the vertical alignment of the media and body.

As the layout component is relatively new there are no specific guidelines for when to use or not use the variants of this layout. Simply be consistent.

Even though the vf-flag layout has a default spacing design token applied as a CSS custom property fallback it is good practice in the system to use and decalre the spacing CSS class name in your project. Also, you should define the vertical variant too.

<div class="vf-flag vf-flag--middle vf-flag--400">...</div>

<div class="vf-flag">...</div>

<div class="vf-flag vf-flag--400">...</div>

<div class="vf-flag vf-flag--middle">...</div>

| variant name | description | | ------------ | --------------------------------------------------------------------- | | top | aligns the media item and body to the top of the layout | | middle | aligns the media item and body to the middle of the layout | | bottom | aligns the media item and body to the bottom of the layout | | reversed | switches the inline spacing * | | 400 | defines the spacing between the media item and body item as 1rem | | 600 | defines the spacing between the media item and body item as 1.5rem | | 800 | defines the spacing between the media item and body item as 2rem |

* The content for this variant needs to be switched so the media item follows the body

Install

This repository is distributed with [npm][https://www.npmjs.com/]. After [installing npm][https://www.npmjs.com/get-npm] and yarn, you can install vf-flag with this command.

$ yarn add --dev @visual-framework/vf-flag

Sass/CSS

The style files included are written in Sass. If you're using a VF-core project, you can import it like this:

@import "@visual-framework/vf-flag/index.scss";

Make sure you import Sass requirements along with the modules. You can use a project boilerplate or the vf-sass-starter

Help