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

@academix-admin/header

v0.2.4

Published

A Flutter AppBar-style React header: back button, title and right-side action icons, with self-contained styles and per-part class overrides.

Downloads

612

Readme

@academix-admin/header

A Flutter AppBar-style header for React: an optional back button, a title, and a row of right-side action icons (with built-in loading spinners). Styles are self-contained (injected once — no CSS import), theme-aware (light/dark), responsive, and every part accepts a class override.

Install

npm install @academix-admin/header
npm install react react-dom

Usage (the common case)

'use client';
import { Header } from '@academix-admin/header';

export default function Page() {
  const [refreshing, setRefreshing] = useState(false);

  return (
    <Header
      title="Redeem Codes"
      theme="dark"
      onBack={() => history.back()}
      actions={[
        { icon: <RefreshIcon />, onClick: refresh, loading: refreshing, ariaLabel: 'Refresh' },
        { icon: <GiveBackIcon />, onClick: openGiveBacks, ariaLabel: 'Give backs' },
      ]}
    />
  );
}

Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | title | ReactNode | — | Rendered as an <h1>. | | theme | 'light' \| 'dark' | 'light' | Colour scheme. | | onBack | () => void | — | Back handler; shows the back button when set. | | showBack | boolean | onBack != null | Force the back button on/off. | | backIcon | ReactNode | built-in chevron | Override the back icon. | | backAriaLabel | string | 'Go back' | Back button aria-label. | | actions | HeaderAction[] | [] | Right-side icon buttons (see below). | | rightContent | ReactNode | — | Escape hatch rendered after actions. | | className | string | — | Root element class (alias for classNames.root). | | classNames | HeaderClassNames | {} | Per-part overrides: root, content, backButton, backIcon, title, action. | | position | 'fixed' \| 'sticky' \| 'static' | 'fixed' | fixed offsets by the sidebar width (see tokens). | | style | CSSProperties | — | Inline style on the root. |

HeaderAction: { icon, onClick?, ariaLabel?, disabled?, loading?, className?, key? }. While loading is true the icon is replaced by a spinner and the button is disabled.

Theming tokens

The injected CSS reads these variables (with fallbacks), so it drops into an existing design system with no config:

| Variable | Fallback | Purpose | |----------|----------|---------| | --ax-header-sidebar-width | --sidebar-width0px | Left offset when position="fixed". | | --ax-header-text-color | --text-colorcurrentColor | Icon/title colour. | | --ax-header-z | 10 | z-index. |

Below 800px / 500px the header spans full width and the title/back-icon scale down (responsive, matching the original design).

License

MIT © Academix