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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@baseline-banner/vue

v1.1.0

Published

Vue component for checking web feature baseline compatibility

Downloads

137

Readme

@baseline-banner/vue

Vue 3 components for displaying web feature baseline compatibility with multiple theme options.

Installation

npm install @baseline-banner/vue
# or
pnpm add @baseline-banner/vue
# or
yarn add @baseline-banner/vue

Available Components

This package provides multiple themed components:

| Component | Description | |-----------|-------------| | BaselineChecker | Basic component (deprecated, use themed variants) | | BaselineBanner | Default theme - clean, minimal design | | BaselineBannerMDN | MDN-inspired theme with detailed browser support | | BaselineBannerWebDev | web.dev-inspired theme with modern styling |

Usage

Default Theme

<template>
  <BaselineBanner feature-name="flexbox" />
</template>

<script setup>
import { BaselineBanner } from '@baseline-banner/vue'
</script>

MDN Theme

The MDN theme provides a detailed view with browser support information:

<template>
  <BaselineBannerMDN feature-name="container-queries" />
</template>

<script setup>
import { BaselineBannerMDN } from '@baseline-banner/vue'
</script>

web.dev Theme

The web.dev theme provides a modern, compact design:

<template>
  <BaselineBannerWebDev feature-name="nesting" />
</template>

<script setup>
import { BaselineBannerWebDev } from '@baseline-banner/vue'
</script>

Global Plugin Registration

Register all components globally:

// main.ts
import { createApp } from 'vue'
import BaselineBannerVue from '@baseline-banner/vue'
import App from './App.vue'

const app = createApp(App)
app.use(BaselineBannerVue)
app.mount('#app')

Then use anywhere in your app:

<template>
  <BaselineBanner feature-name="grid" />
  <BaselineBannerMDN feature-name="flexbox" />
  <BaselineBannerWebDev feature-name="popover" />
</template>

Component Props

All banner components accept the same props:

| Prop | Type | Required | Description | |------|------|----------|-------------| | feature-name | WebFeatureId | Yes | Web feature ID with full TypeScript intellisense |

Sub-Components

For advanced customization, you can import individual sub-components:

MDN Theme Sub-Components

<script setup>
import { 
  BaselineBadgeMDN,
  BaselineYearMDN,
  BrowserStatusMDN 
} from '@baseline-banner/vue'
</script>

web.dev Theme Sub-Components

<script setup>
import { BaselineBadgeWebDev } from '@baseline-banner/vue'
</script>

TypeScript Support

Full TypeScript support with exported types:

import type { 
  WebFeatureId, 
  BaselineStatus, 
  WebPlatformFeature 
} from '@baseline-banner/vue'

Features

  • Multiple Themes - MDN, web.dev, and default themes included
  • Full TypeScript Support - Autocomplete for 1080+ web features
  • 🎨 Styled by Default - Clean, accessible designs
  • Loading States - Built-in loading and error handling
  • 📱 Responsive - Works on all screen sizes
  • 🎯 Real-time Data - Always up-to-date baseline information

Popular Feature Examples

<template>
  <!-- CSS Features -->
  <BaselineBanner feature-name="flexbox" />
  <BaselineBannerMDN feature-name="grid" />
  <BaselineBannerWebDev feature-name="container-queries" />
  
  <!-- Modern CSS -->
  <BaselineBanner feature-name="nesting" />
  <BaselineBannerMDN feature-name="has" />
  
  <!-- Web APIs -->
  <BaselineBannerWebDev feature-name="popover" />
  <BaselineBanner feature-name="dialog" />
  <BaselineBannerMDN feature-name="view-transitions" />
</template>

Requirements

  • Vue 3.0+
  • Modern browser with fetch API support

License

MIT