@arqel-dev/hooks
OfficialReusable React hooks for Arqel admin panels.
Authorarqel-dev
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Provides a collection of reusable React hooks to simplify building Inertia-based Resource pages in Arqel, merging page props with ResourceContext and common UI state, reducing boilerplate and ensuring consistent behavior.
Core Features & Use Cases
- useResource<T>() for merged page props and ResourceContext
- useArqelForm({ fields, record, defaults }) as a drop-in wrapper around Inertia's useForm
- useCanAccess(ability, record?) for UX-only access checks
- useFlash({ onMessage }) for one-shot flash callbacks
- useTable({ defaultSort, defaultFilters, defaultSelection }) for local state
- useAction(action) to dispatch via Inertia router
- useFieldDependencies({ fields, values, debounceMs }) for debounced field option reload
- useNavigation() for derived navigation items
- useBreakpoint() SSR-safe tailwind breakpoint
- useArqelOptimistic() alias to useOptimistic
- useResourceUpdates() for real-time resource updates
- useResourceUpdates() — subscribes to server updates and triggers partial reloads
Quick Start
Install and integrate the hooks library into your Arqel app by importing from @arqel-dev/hooks and wiring into Resource pages.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: @arqel-dev/hooks Download link: https://github.com/arqel-dev/arqel/archive/main.zip#arqel-dev-hooks Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 510,000+ vetted skills library on demand.