npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@getfly-ui/file-upload

v0.0.3

Published

FileUpload for getfly UI

Readme

FileUpload component

NPM License NPM Version npm bundle size npm bundle size NPM Downloads NPM Type Definitions

How to use

import { FileUpload } from '@getfly-ui/file-upload';

OR

import { FileUpload } from 'getfly-ui';

Props

AttachmentUpload

| Prop | Type | Default | Description | | ---- | ---- | ------- | ----------- | | title | string or undefined | "Attachments" | Title displayed above the list. | | iconPrimary | enum | | | | iconPrimaryColorTheme | enum | | | | iconPrimaryColor | string or undefined | | | | iconPrimarySize | number or undefined | | | | titlePreset | enum | | | | titleColorTheme | enum | | | | titleColor | string or undefined | | | | files | FileItem[] or undefined | [] | List of attached files. | | fileNamePreset | enum | | | | fileNameColorTheme | enum | | | | textUpload | string or undefined | | | | textUploadPreset | enum | | | | textUploadColorTheme | enum | | | | iconUpload | enum | | | | iconUploadMore | enum | | | | iconUploadColorTheme | enum | | | | textUploadMore | string or undefined | | | | textUploadMorePreset | enum | | | | textUploadMoreColorTheme | enum | | | | borderUploadColorTheme | enum | | | | borderWidth | number or undefined | | Border width | | borderStyle | enum | | Border style | | iconUploadMoreSize | number or undefined | | | | onUpload | (() => void) or undefined | | Callback fired when upload button is clicked. | | onDelete | ((file: FileItem, index: number) => void) or undefined | | Callback fired when delete button is clicked on a file. @param file The file object being deleted. @param index The index of that file in the list. |

FileFormatCard

| Prop | Type | Default | Description | | ---- | ---- | ------- | ----------- | | files | FileItem[] | | List of files | | nameFilePreset | enum | | | | nameFileColorTheme | enum | | | | sizeFilePreset | enum | | | | sizeFileColorTheme | enum | | | | limit | number or undefined | | Limit number of preview files (for "+25" etc.) | | onDelete | ((file: FileItem, index: number) => void) or undefined | | Callback when file deleted | | onClick | ((file: FileItem, index: number) => void) or undefined | | Callback when file clicked |

ImageUpload

| Prop | Type | Default | Description | | ---- | ---- | ------- | ----------- | | title | string or undefined | "QR Payment" | Title displayed at the top of the QR/image section. | | textUpload | string or undefined | | | | textUploadPreset | enum | | | | textUploadColorTheme | enum | | | | titlePreset | enum | | | | titleColorTheme | enum | | | | iconLeft | enum | | | | iconLeftColorTheme | enum | | | | iconLeftColor | string or undefined | | | | iconLeftSize | number or undefined | | | | iconRight | enum | | | | iconRightColorTheme | enum | | | | iconRightColor | string or undefined | | | | iconRightSize | number or undefined | | | | buttonColorTheme | enum | | | | buttonColor | string or undefined | | | | imageUrl | string or undefined | | URL of the uploaded image. @example "https://api.qrserver.com/v1/create-qr-code/?data=example" | | borderWidth | number or undefined | | Border width | | borderStyle | enum | | Border style | | onUpload | (() => void) or undefined | | Triggered when clicking the upload button. | | onDelete | (() => void) or undefined | | Triggered when clicking the delete (x) button. | | onDownload | ((type: "image" or "pdf") => void) or undefined | | Triggered when downloading the image or PDF file. @param type Determines whether downloading as image or PDF. @example onDownload?.("pdf") | | onSend | ((method: "email" or "sms") => void) or undefined | | Triggered when sending the image via another channel. @param method The channel used to send (email or sms). @example onSend?.("email") | | actions | ImageUploadAction[] or undefined | | Custom list of action buttons displayed next to the uploaded image. If provided, this overrides onDownload and onSend defaults. @example actions={[ { label: "Lưu ảnh", icon: "download_outline", onClick: () => {} }, { label: "Gửi SMS", icon: "chat_outline", onClick: () => {} }, ]} |