You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Boolean — true when window scrollY exceeds threshold.
Utilities
Export
Description
displayClassForLength(text, sizes?)
Returns a length-aware text-display-* class for the given string.
Types
Export
Description
DeckSection, DeckSlide
SlideDeck content shape.
VideoModalItem
VideoModal content shape.
Section component props (Accent, Video, Slide, Cta) are NOT exported as named types — construct matching objects structurally in the consuming app.
Caveats
"use client" on the entire barrel. The bundled dist/index.js is marked "use client" so all exports work in App Router server contexts. Pure-server components (e.g., Eyebrow, Card) still render correctly but run in the client bundle when imported via @ptblink/ui. If you need them as RSC, copy the source directly.
Branded assets are bundled. From 0.1.3 onward, icon-128.png and blinklogo-dark.svg ship inside the package and are consumed directly by SiteHeader / SiteFooter — no public/brand/ files needed in the consuming app. Reuse them anywhere with import url from "@ptblink/ui/brand/icon-128.png" / ... /blinklogo-dark.svg".
Tailwind v4 only. Tokens live in a @theme block inside @ptblink/ui/styles.css. There is no v3 compatibility build.
About
PT Blink shared UI primitives, design tokens, and animation helpers.