Balance Logo
Balance
Reckon Design System
Open playroom

Utils

The utils package provides a grab-bag of utility hooks and helpers for React development.
Install
pnpm add @balance-web/utils
Import usage
import {
formatCurrency,
forwardRefWithAs,
hexToRgb,
plural,
sentenceCase,
titleCase,
makeId,
useId,
useClickOutside,
getContrastText,
useKeyPress,
useScrollLock,
wrapHandlers,
simpleHash,
flattenChildren,
flattenElements,
useForkedRef,
useDefaultInteractiveStyles,
usePrevious,
assert,
isDefined,
typedKeys,
typedEntries,
ternary,
truncateText
} from '@balance-web/utils';
  • Code
  • API
Loading...
Copyright © 2024 Reckon. Designed and developed in partnership with Thinkmill.
Bitbucket logoJira software logoConfluence logo