🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

lofter-image-upload

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lofter-image-upload

Demo:

latest
npmnpm
Version
1.1.5
Version published
Weekly downloads
6
-53.85%
Maintainers
1
Weekly downloads
 
Created
Source

图片上传组件

Demo:

import React from 'react';
import { ImageUpload } from 'image-upload';

export default () => <ImageUpload hint="lele" />;

api

interface Props {
  hint?: string;  // 额外的描述文字,比如'限制width:xxx,height:xxx'
  value?: string;
  onChange?: (value: string) => void;
  accept?: string // 上传文件的类型
}

FAQs

Package last updated on 18 Nov 2021

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