# @aligov/components-img-thumb

> 图片展示小图，点击展示大图

Latest version **1.0.3** (published 2024-06-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @aligov/components-img-thumb
pnpm add @aligov/components-img-thumb
yarn add @aligov/components-img-thumb
bun add @aligov/components-img-thumb
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2024-06-07 |
| First published | 2019-11-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 481.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | jasoncapricorn, qingkaili, huguoxin, shenyu.wsy, liunian, tao1991123, itrip, xiazhiqiang, mo.zhou, guoliang.hgl, daip, baizhao |
| Keywords | ice, react, component |

## Links

- npm: https://www.npmjs.com/package/@aligov/components-img-thumb
- Repository: git@gitlab.alibaba-inc.com:gov-mid-fe/gov-materials
- Homepage: https://unpkg.com/@aligov/components-img-thumb@1.0.3/build/index.html
- npm.io page: https://npm.io/package/@aligov/components-img-thumb

## Dependencies (2)

- [prop-types](https://npm.io/package/prop-types.md) ^15.5.8
- [@alifd/next](https://npm.io/package/@alifd/next.md) 1

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.3 (latest) — 2024-06-07
- 1.0.2 — 2020-08-17
- 1.0.1 — 2019-12-30
- 1.0.0 — 2019-11-23

## README

# 图片展示小图点击展示大图

@aligov/components-img-thumb

图片展示小图，点击展示大图

## 用法

```jsx
import ImgThumb from '@aligov/components-img-thumb';

<ImgThumb src={imgSrc} />
```

## API

| 参数名  | 说明                     | 必填 | 类型                                | 默认值 | 备注 |
| ------  | ----                     | ---- | ----                                | ------ | ---- |
| src     | 图片地址                 | Y    | string                              |        |      |
| alt     | 图片 alt 信息            |      | string                              |        |      |
| width   | 缩略图宽度               |      | css width 有效值或数字（等同于px）  | 30px   |      |
| height  | 缩略图高度               |      | css height 有效值或数字（等同于px） | 30px   |      |
| trigger | 自定义触发器而不是缩略图 |      | React 元素                          |        |      |

---
_Source: https://npm.io/package/@aligov/components-img-thumb · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
