nori-ui

Hooks

Public hooks shipped by @nori-ui/core — i18n, theming, animation, and pagination logic, all cross-platform and tree-shakable.

View as JSON

The library exposes a small surface of hooks alongside its components. Each hook is cross-platform (web + React Native), tree-shakable, and has its own documentation page below.

HookPurpose
usePaginationHeadless pagination math — sibling/boundary windowing, prev/next/first/last actions, controlled or uncontrolled.
useTranslationThe library's i18n primitive — read keys with interpolation and pluralization.
useThemeColorsRead the resolved theme tokens (colors, spacing, radii, typography) for the current color scheme.
useAnimatedNumberAnimate a numeric value over time — works on web (CSS transitions) and native (Reanimated worklets).

All hooks must be imported from @nori-ui/core/client (they're client-only) and require a <NoriProvider> ancestor for theme + i18n context.

On this page

No Headings
Preview theme