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

@atlaskit/date-label

v1.3.0

Published

Date label is a non-interactive label that displays a date and optionally, visually communicates its status.

Readme

DateLabel

A Date label is a non-interactive label that displays a date and optionally, visually communicates its status.

Installation

yarn add @atlaskit/date-label

Usage

DateLabel

import DateLabel from '@atlaskit/date-label';
// or via entry-point:
import DateLabel from '@atlaskit/date-label/date-label';

// Neutral (default)
<DateLabel label="29 Jul 2026" />

// Warning — for upcoming/near-due dates
<DateLabel label="29 Jul 2026" appearance="warning" />

// Danger — for overdue dates
<DateLabel label="29 Jul 2026" appearance="danger" />

// Without icon
<DateLabel label="29 Jul 2026" hasIconBefore={false} />

// Spacious — 32px height, body font size
<DateLabel label="29 Jul 2026" isSpacious />

// Custom max width
<DateLabel label="29 Jul 2026" maxWidth={120} />

DateLabelDropdownTrigger

Date label dropdown trigger is an interactive date label that opens a menu for date selection.

import { DateLabelDropdownTrigger } from '@atlaskit/date-label';
// or via entry-point:
import { DateLabelDropdownTrigger } from '@atlaskit/date-label/date-label-dropdown-trigger';

<DateLabelDropdownTrigger
  label="29 Jul 2026"
  appearance="neutral"
  onClick={() => setOpen(true)}
  aria-expanded={isOpen}
  aria-haspopup="dialog"
/>

// Spacious variant
<DateLabelDropdownTrigger label="29 Jul 2026" isSpacious />

Importing types

import type { DateLabelProps, DateLabelAppearance } from '@atlaskit/date-label';
import type {
	DateLabelDropdownTriggerProps,
	DateLabelDropdownTriggerAppearance,
} from '@atlaskit/date-label';

// or via the types entry-point:
import type {
	DateLabelAppearance,
	DateLabelDropdownTriggerAppearance,
} from '@atlaskit/date-label/types';

Appearances

| Appearance | Border colour | Text colour | Icon | | ---------- | --------------------------------- | -------------------- | ------------------ | | neutral | color.border.accent.gray.subtle | color.text | CalendarIcon | | warning | color.border.warning.subtle | color.text.warning | ClockIcon | | danger | color.border.danger.subtle | color.text.danger | WarningOutlineIcon |

Entry-points

| Entry-point | Exports | | -------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | | @atlaskit/date-label | DateLabel (default), DateLabelDropdownTrigger, all types | | @atlaskit/date-label/date-label | DateLabel (default), DateLabelProps, DateLabelAppearance | | @atlaskit/date-label/date-label-dropdown-trigger | DateLabelDropdownTrigger (default), DateLabelDropdownTriggerProps, DateLabelDropdownTriggerAppearance | | @atlaskit/date-label/types | All exported types |

Props

DateLabel

| Prop | Type | Default | Description | | --------------- | --------------------- | ----------- | -------------------------------------------------------------------------------------------------------------------------- | | label | string | required | The text to display | | appearance | DateLabelAppearance | 'neutral' | Controls border, text, and icon colour | | hasIconBefore | boolean | true | Shows a contextual icon before the label | | iconLabel | string | — | Accessible label for the icon. Defaults to 'Date', 'Warning', 'Danger' per appearance. Pass '' to make decorative. | | isSpacious | boolean | false | Increases height to 32px and uses body font | | maxWidth | number \| string | 180 | Max width in px (number) or any CSS value (string) | | testId | string | — | data-testid for automated tests |

DateLabelDropdownTrigger

| Prop | Type | Default | Description | | --------------- | -------------------------------------- | ----------- | -------------------------------------------------------------------------------------------------------------------------- | | label | string | required | The text to display | | appearance | DateLabelDropdownTriggerAppearance | 'neutral' | Controls border, text, and icon colour | | hasIconBefore | boolean | true | Shows a contextual icon before the label | | iconLabel | string | — | Accessible label for the icon. Defaults to 'Date', 'Warning', 'Danger' per appearance. Pass '' to make decorative. | | isLoading | boolean | false | Shows a loading spinner overlay and disables interaction | | isSelected | boolean | false | Applies selected background and text colour | | isSpacious | boolean | false | Increases height to 32px and uses body font | | maxWidth | number \| string | 200 | Max width in px (number) or any CSS value (string) | | onClick | MouseEventHandler<HTMLButtonElement> | — | Click handler | | aria-controls | string | — | ID of the controlled popup element | | aria-expanded | boolean | — | Whether the popup is open | | aria-haspopup | boolean \| 'dialog' | — | Type of popup this triggers | | aria-label | string | — | Accessible label (falls back to label text) | | testId | string | — | data-testid for automated tests |

Detailed docs and example usage can be found here.