New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@gentleduck/hooks

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gentleduck/hooks

React hooks for Duck UI.

latest
Source
npmnpm
Version
0.1.13
Version published
Weekly downloads
23
-95.02%
Maintainers
1
Weekly downloads
 
Created
Source

@gentleduck/hooks

This package provides a collection of reusable React hooks for the @gentleduck/ui component library.

Available Hooks

  • use-composed-refs: A hook to merge multiple refs into a single ref.
  • use-computed-timeout-transition: A hook to manage timeout-based transitions.
  • use-copy-to-clipboard: A hook to copy text to the clipboard.
  • use-debounce: A hook to debounce a value.
  • use-is-mobile: A hook to detect if the user is on a mobile device.
  • use-media-query: A hook to use media queries in your components.
  • use-on-open-change: A hook to handle open/close state changes.
  • use-stable-id: A hook to generate a stable ID.

Usage

To use a hook, import it from the corresponding directory:

import { useDebounce } from '@gentleduck/hooks/use-debounce';

function MyComponent() {
  const [value, setValue] = useState('');
  const debouncedValue = useDebounce(value, 500);

  // ...
}

License

MIT © gentleduck

Keywords

gentleduck

FAQs

Package last updated on 14 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts