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

@fvc/chip

v2.0.0-next-207ecd1bb62ad0a0f4fdfdf14ce2db83e5078a81

Published

`@fvc/chip` provides FE-VIS styled chip primitives on top of Ant Design. It wraps the antd `Tag` component, replaces the class prefix with `fvc-chip`, and delivers the Figma-exact design-system appearance: two sizes, an optional close action, and a disabl

Readme

@fvc/chip

@fvc/chip provides FE-VIS styled chip primitives on top of Ant Design. It wraps the antd Tag component, replaces the class prefix with fvc-chip, and delivers the Figma-exact design-system appearance: two sizes, an optional close action, and a disabled state.

Installation

bun add @fvc/chip

Peer Dependencies

bun add react antd

Import

import { Chip } from '@fvc/chip';

Quick Start

import { Chip } from '@fvc/chip';

export function FilterBar() {
  return <Chip size="medium">Active</Chip>;
}

Common Usage

Sizes

<Chip size="medium">Medium</Chip>
<Chip size="small">Small</Chip>

Closable

Set closable to render a close icon. Use onClose to react to the close action.

const [visible, setVisible] = useState(true);

{visible && (
  <Chip closable onClose={() => setVisible(false)}>
    Filter
  </Chip>
)}

Disabled

A disabled chip ignores clicks and hides the close icon.

<Chip disabled>Disabled</Chip>

Leading Icon

Use the icon prop to render a React node before the label text.

<Chip icon={<SomeIcon width={16} height={16} />}>With icon</Chip>

Forwarding Refs

The component forwards its ref to the underlying <span> element.

const ref = useRef<HTMLSpanElement>(null);
<Chip ref={ref}>Label</Chip>

Props

Chip accepts all Ant Design TagProps except color, bordered, and prefixCls, plus the additions below.

| Prop | Type | Default | Description | | ----------- | --------------------------- | ---------- | ----------------------------------------------------------------------- | | size | 'medium' \| 'small' | 'medium' | Visual size of the chip. | | disabled | boolean | false | Disables interaction and dims the chip. | | closable | boolean | — | Renders a close icon. Inherited from antd TagProps. | | onClose | (e: MouseEvent) => void | — | Called when the close icon is clicked. Inherited from antd TagProps. | | icon | ReactNode | — | Icon rendered before the label text. Inherited from antd TagProps. | | className | string | — | Additional class names merged onto the root element. | | testId | string | — | Maps to data-testid on the root element. |

CSS Classes

| Class | Applied when | | ---------------------- | ----------------------------------------------------------------- | | .fvc-chip | Always — the root <span> element. | | .fvc-chip-borderless | Always — chip is always rendered without a border. | | .fvc-chip-medium | When size="medium" (default). | | .fvc-chip-small | When size="small". | | .fvc-chip-disabled | When disabled={true}. | | .fvc-chip-close-icon | The close icon wrapper rendered by antd when closable={true}. |

Example override

.my-filter-bar .fvc-chip-close-icon {
  width: 20px;
  height: 20px;
}

CSS Custom Properties

Override these variables in your global stylesheet. All variables are declared on :root in src/styles/variables.scss.

Typography

| Variable | Default | | -------------------- | ---------------------- | | --chip-font-family | 'Roboto', sans-serif | | --chip-fz | 14px | | --chip-fw | 400 | | --chip-lh | 16px |

Layout

| Variable | Default | | ----------------------- | ------- | | --chip-px | 10px | | --chip-radius | 16px | | --chip-gap | 4px | | --chip-close-icon-size| 16px |

Sizes

| Variable | Default | | ------------------------ | ------- | | --chip-medium-size-py | 8px | | --chip-small-size-py | 4px |

Colours

| Variable | Default | | ------------------------ | ------------------------------------------- | | --chip-bg | var(--gray-150) | | --chip-fg | var(--body-text-color-1000) | | --chip-close-icon-fg | var(--gray-450) | | --chip-close-icon-hover-fg | var(--link-icon-color-500) | | --chip-disabled-fg | var(--blue-gray-600) | | --chip-disabled-bg | var(--gray-150) | | --chip-focus-ring-color| var(--blue-400) |

Global override example

// globals.scss
:root {
  --chip-font-family: 'Inter', sans-serif;
  --chip-bg: var(--neutral-200);
  --chip-fg: var(--neutral-900);
  --chip-radius: 4px;
  --chip-focus-ring-color: var(--brand-500);
}

Development

bun run lint
bun run type-check
bun run test
bun run build