open-index/open-npm huggingface dataset:
npm package: @plenty-hooks/cli
Description: This library was generated with [Nx](https://nx.dev).
Latest version: 1.24.2

# cli

This library was generated with [Nx](https://nx.dev).

## Building

Run `nx build cli` to build the library.

## Running unit tests

Run `nx test cli` to execute the unit tests via [Vitest](https://vitest.dev/).
npm package: @plenty-hooks/use-battery
Description: A React Hook for monitoring battery status using the Battery Status API.
Latest version: 1.24.2

# useBattery

A React Hook for monitoring battery status using the Battery Status API.

## Installation

```bash
npm install @plenty-hooks/use-battery
```

## Usage

```tsx
import useBattery from '@plenty-hooks/use-battery';

function BatteryIndicator() {
  const battery = useBattery();

  if (!battery) return <div>Battery info unavailable</div>;

  return (
    <div>
      <p>Battery Level: {(battery.level * 100).toFixed(0)}%</p>
      <p>Charging: {battery.charging ? 'Yes' : 'No'}</p>
    </div>
  );
}
```

## API

`useBattery()` → `BatteryState | null`

### Returns

Battery state object or null if not supported:

- `charging` (boolean): Whether the battery is currently charging
- `chargingTime` (number): Time in seconds until fully charged
- `dischargingTime` (number): Time in seconds until fully discharged
- `level` (number): Battery level between 0 and 1
npm package: @plenty-hooks/use-document-title
Description: A React Hook that allows you to dynamically set and manage the document title.
Latest version: 1.24.2

# useDocumentTitle

A React Hook that allows you to dynamically set and manage the document title.

## Installation

```bash
npm install @plenty-hooks/use-document-title
```

## API

[docs](https://lukonik.github.io/plenty-hooks/docs/use-document-title)
npm package: @plenty-hooks/use-intersection-observer
Description: A React hook for observing when an element enters or exits the viewport using the Intersection Observer API.
Latest version: 1.24.2

# useIntersectionObserver

A React hook for observing when an element enters or exits the viewport using the Intersection Observer API.

## Installation

```bash
npm install @plenty-hooks/use-intersection-observer
```

## API

[docs](https://lukonik.github.io/plenty-hooks/docs/use-intersection-observer)
npm package: @plenty-hooks/use-is-mounted
Description: A React hook that returns a function to check whether a component is currently mounted.
Latest version: 1.24.2

# useIsMounted

A React hook that returns a function to check whether a component is currently mounted.

## Installation

```bash
npm install @plenty-hooks/use-is-mounted
```

## API

[docs](https://lukonik.github.io/plenty-hooks/docs/use-is-mounted)
npm package: @plenty-hooks/use-is-online
Description: A React Hook that tracks the browser's online/offline status and automatically updates when the connection state changes.
Latest version: 1.24.2

# useIsOnline

A React Hook that tracks the browser's online/offline status and automatically updates when the connection state changes.

## Installation

```bash
npm install @plenty-hooks/use-is-online
```

## API

[docs](https://lukonik.github.io/plenty-hooks/docs/use-is-online)
npm package: @plenty-hooks/use-on-click-outside
Description: This library was generated with [Nx](https://nx.dev).
Latest version: 1.24.2

# use-on-click-outside

This library was generated with [Nx](https://nx.dev).

## Running unit tests

Run `nx test use-on-click-outside` to execute the unit tests via [Vitest](https://vitest.dev/).
npm package: @plenty-hooks/use-platform
Description: A React Hook that provides comprehensive platform and browser detection information.
Latest version: 1.24.2

# usePlatform

A React Hook that provides comprehensive platform and browser detection information.

## Installation

```bash
npm install @plenty-hooks/use-platform
```

## API

[docs](https://lukonik.github.io/plenty-hooks/docs/use-platform)
npm package: @plenty-hooks/use-resize-observer
Description: A React hook that observes changes to an element's dimensions using the ResizeObserver API.
Latest version: 1.24.2

# useResizeObserver

A React hook that observes changes to an element's dimensions using the ResizeObserver API.

## Installation

```bash
npm install @plenty-hooks/use-resize-observer
```

## API

[docs](https://lukonik.github.io/plenty-hooks/docs/use-resize-observer)
npm package: @plenty-hooks/use-window-scroll
Description: A React hook that tracks the current window scroll position and provides helper functions to programmatically scroll to specific positions.
Latest version: 1.24.2

# useWindowScroll

A React hook that tracks the current window scroll position and provides helper functions to programmatically scroll to specific positions.

## Installation

```bash
npm install @plenty-hooks/use-window-scroll
```

## API

[docs](https://lukonik.github.io/plenty-hooks/docs/use-window-scroll)
npm package: @plenty-hooks/use-window-size
Description: A React Hook that provides the current window size (width and height) and automatically updates when the window is resized.
Latest version: 1.24.2

# useWindowSize

A React Hook that provides the current window size (width and height) and automatically updates when the window is resized.

## Installation

```bash
npm install @plenty-hooks/use-window-size
```

## API

[docs](https://lukonik.github.io/plenty-hooks/docs/use-window-size)