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

@teamsparta/stack-header

v1.0.2

Published

stack header

Readme

@teamsparta/stack-header

Stack 디자인 시스템의 Header 컴포넌트. 페이지 최상단에 위치하며 좌·우 슬롯, titleText(center/left 정렬), divider, progress bar를 지원합니다.

코드 위계 (Figma ↔ src)

| Figma 노드 / 부위 | src 위치 | | ------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | | Header wrapper | Header.style.ts (wrapperBaseCss + wrapperSizeCss) — full width, height 60/50, zIndex.popover | | contents (inner) | Header.style.ts (contentsBaseCss + contentsSizeCss) — padding, max-width | | left slot (icon + addon) | Header.tsx 좌측 영역 + leftSideCss, iconSlotCss | | right slot (addon + icon) | Header.tsx 우측 영역 + rightSideCss, iconSlotCss | | titleText | Header.tsx title + <Text font="bodyB"> — center: 좌·우 슬롯 flex:1 균등 분배로 정중앙(순수 CSS), left: leftIcon ↔ leftAddon 사이 | | divider | Header.style.ts (dividerCss) — vars.line.nonClickable | | progressBar track + fill | Header.style.ts (progressTrackCss, progressFillCss) | | dev-mode misuse warning | warnHeaderDevMisuse.ts |

사용 예시

import { Header } from "@teamsparta/stack-header";

<Header
  titleText='페이지 제목'
  leftIcon={<MenuIcon />}
  rightIcon={<CloseIcon />}
  progress={42}
/>;

의존성

Stack DS의 다른 컴포넌트와 마찬가지로 root에 <StackProvider>를 두는 것을 권장합니다. 없어도 default breakpoint(mobile:0, tablet:768)로 동작합니다.

import { StackProvider } from "@teamsparta/stack-core";

<StackProvider>
  <App />
</StackProvider>;

sticky 헤더 패턴

Header는 "페이지 최상단에 위치하는 컨테이너"이므로 기본적으로 sticky가 켜져 position: sticky; top: 0으로 상단에 고정됩니다.

// 기본 — 스크롤 시 상단 고정
<Header titleText="페이지 제목" />

// 고정이 불필요하면 끄기 (position: relative) — 모달 내부 헤더, 섹션 경계 헤더 등
<Header titleText="페이지 제목" sticky={false} />

Headerposition: sticky(또는 sticky={false}relative)로 stacking context를 만들고 zIndex.popover (1000)을 적용하므로 일반 페이지 콘텐츠 위에 자연스럽게 표시됩니다. (Tooltip/Modal은 zIndex.overlay (10000)로 Header 위에 표시됩니다.)

자세한 가이드는 Storybook Components/Header/Introduction 페이지를 참고하세요.