@pras-ui/core
v1.0.4
Published
> A collection of low-level hooks and utilities shared across the `@pras-ui` ecosystem.
Downloads
3
Readme
@pras-ui/core
A collection of low-level hooks and utilities shared across the
@pras-uiecosystem.
This package provides internal helpers for other @pras-ui packages and is not typically installed directly.
Included Utilities
createContextScope: A utility for creating composable and namespaced React contexts.composeEventHandlers: A helper to compose multiple event handlers into one.intercept: A powerful utility to orchestrate complex event interactions. It allows you to enhance an event, run a user-provided handler, and then conditionally run default logic based on whether the user cancelled the event by callingpreventDefaultPlus().useControllableState: A hook for creating components that can be either controlled or uncontrolled.useId: A hook for generating unique, SSR-safe IDs usingReact.useId.useMergeRefs: A hook for merging multiple refs into a single ref callback.
