Introduction
Reusable mobile behaviors as hooks.
Hooks hold behavior without any UI. Each one is usable on its own, without adopting the rest of the system.
useControllableState
Controlled or uncontrolled state, used by every Axiom input.
useOverlayBackHandler
Close a sheet, dialog or menu on a back action instead of leaving the screen.
useRefreshControl
Pull-to-refresh for any list or ScrollView.
useHideOnScroll
Bars that slide out on scroll down and come back on scroll up.
useCollapsibleHeader
A large header that shrinks into a compact bar as the list scrolls.
useScrollToTop
A scroll-to-top button past a threshold, plus tab press and status bar tap.
useScrollAwareAppBar
An AppBar that gets a background, a hairline and its title as content scrolls under it.
useSwipeActions
Actions revealed by swiping a row, with an optional full swipe.
useDragToReorder
Lift a row and drag it to a new position in a list.
Planned
The list is meant to grow. Behaviors under consideration:
- keyboard-aware behavior;
- navigation behaviors.