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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@lg-chat/title-bar

v2.0.3

Published

lg-chat Title Bar

Downloads

580

Readme

Title Bar

Installation

Yarn

yarn add @lg-chat/title-bar

NPM

npm install @lg-chat/title-bar

Example

import { TitleBar } from '@lg-chat/title-bar';

return <TitleBar badgeText="Beta" />;

Output HTML

<div class="leafygreen-ui-3cyua8">
  <div class="leafygreen-ui-1l1ozhg">
    <div
      class="leafygreen-ui-1h06ytl"
      data-testid="mongo-avatar"
      color="green-base"
    >
      <svg
        role="img"
        aria-label="MongoDB Logo"
        class="leafygreen-ui-ebwjgf"
        height="40"
        viewBox="0 0 15 32"
        fill="none"
      >
        <path
          d="M10.2779 3.56801C8.93285 1.97392 7.76219 0.354933 7.52557 0.0186807C7.50066 -0.00622689 7.4633 -0.00622689 7.43839 0.0186807C7.20177 0.354933 6.04357 1.97392 4.69856 3.56801C-6.8461 18.2759 6.51681 28.1891 6.51681 28.1891L6.6289 28.2639C6.72853 29.7957 6.9776 32 6.9776 32H7.47576H7.97391C7.97391 32 8.22298 29.8081 8.32261 28.2639L8.4347 28.1767C8.44715 28.1891 21.8225 18.2759 10.2779 3.56801ZM7.48821 27.9774C7.48821 27.9774 6.89043 27.4668 6.72853 27.2053V27.1804L7.45085 11.1648C7.45085 11.115 7.52557 11.115 7.52557 11.1648L8.24789 27.1804V27.2053C8.08599 27.4668 7.48821 27.9774 7.48821 27.9774Z"
          fill="#00ED64"
        ></path>
      </svg>
    </div>
    <p class="leafygreen-ui-1tb6tuo"><strong>LeafyGreen Chat</strong></p>
    <div class="leafygreen-ui-1qtf7xy">Beta</div>
  </div>
</div>

Properties

| Prop | Type | Description | Default | | ----------- | ------------------------------------------ | -------------------------------------------------------------- | ----------------------------------------------------- | | align | 'center', 'left' | Alignment of the title text and badge | 'left' | | badgeText | string | Badge text rendered to indicate 'Beta' or 'Experimental' flags | | | onClose | React.MouseEventHandler<HTMLButtonElement | HTMLAnchorElement> | Event handler called when the close button is clicked | | title | string | Title text | | | ... | HTMLElementProps<'div'> | Props spread on root element | |