# clutch-widget-nextjs

> Module for Clutch widget in Next Js/React environment.

Latest version **2.0.2** (published 2024-06-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install clutch-widget-nextjs
pnpm add clutch-widget-nextjs
yarn add clutch-widget-nextjs
bun add clutch-widget-nextjs
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.2 |
| Published | 2024-06-11 |
| First published | 2024-05-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 7.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Eldar N |
| Maintainers | eldernv |
| Keywords | clutch, widget |

## Links

- npm: https://www.npmjs.com/package/clutch-widget-nextjs
- Repository: https://github.com/ElderNE/c-widget-container
- Homepage: https://github.com/ElderNE/c-widget-container#readme
- Issues: https://github.com/ElderNE/c-widget-container/issues
- npm.io page: https://npm.io/package/clutch-widget-nextjs

## Dependencies (2)

- [react](https://npm.io/package/react.md) ^18.3.1
- [@types/react](https://npm.io/package/@types/react.md) ^18.3.3

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 2.0.2 (latest) — 2024-06-11
- 2.0.1 — 2024-06-11
- 2.0.0 — 2024-06-11
- 1.1.1 — 2024-05-29
- 1.1.0 — 2024-05-29
- 1.0.4 — 2024-05-27
- 1.0.3 — 2024-05-27
- 1.0.2 — 2024-05-27
- 1.0.1 — 2024-05-27

## README

<hr>

# clutch-widget-nextjs

Module for Clutch widget in Next Js/React environment.
Wrap the widget code to iframe.

## Installation

```sh
npm install clutch-widget-nextjs
```

### Data from Clatch:

scriptIn    "string"
divIn       "string"

### Size:

widthIn     "string"
heightIn    "string"

### Position:

position    "static" | "relative" | "absolute" | "sticky" | "fixed"
zIndex      "string"
leftIn      "string"
topIn       "string"
rightIn     "string"
bottomIn    "string"

### Title:

title

### Background:

background

## Default values

scriptIn        = "`<script></script>`",
divIn           = "`<div></div>`",
widthIn         = "0",
heightIn        = "0",
zIndex          = "0",
leftIn          = "auto",
topIn           = "auto",
rightIn         = "auto",
bottomIn        = "auto",
title           = "Clatch Widget",
position        = "fixed",
background      = "rgba(255,255,255,0.8)"
sandboxRules    = "allow-scripts allow-same-origin allow-popups"

### Example:

```sh
import { WidgetContainer } from "clutch-widget-nextjs";

<WidgetContainer
    scriptIn={`<script></script>`}
    divIn={`<div></div>`}
    widthIn={"205px"}
    heightIn={"65px"}
    zIndex={"1"}
    leftIn={"auto"}
    bottomIn={"auto"}
    topIn={"10px"}
    rightIn={"auto"}
    position={"absolute"}
    background={"rgba(255,255,255,0.7)"}
    sandboxRules={"allow-scripts allow-same-origin allow-popups"}
/>
```

## License

MIT

---
_Source: https://npm.io/package/clutch-widget-nextjs · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
