UNPKG

@enso-ui/uploader

Version:

File upload components for Enso UI.

51 lines (45 loc) 1.92 kB
# Uploader [![License](https://img.shields.io/badge/license-MIT-10b981.svg)](https://github.com/enso-ui/uploader/blob/master/LICENSE) [![Stable](https://img.shields.io/badge/stable-3.1.1-2563eb.svg)](https://www.npmjs.com/package/@enso-ui/uploader) [![Downloads](https://img.shields.io/npm/dm/@enso-ui/uploader.svg)](https://www.npmjs.com/package/@enso-ui/uploader) [![Vue](https://img.shields.io/badge/vue-3.x-42b883.svg)](https://vuejs.org/) [![JavaScript](https://img.shields.io/badge/javascript-ES2020-f7df1e.svg)](https://developer.mozilla.org/docs/Web/JavaScript) [![SCSS](https://img.shields.io/badge/scss-supported-c6538c.svg)](https://sass-lang.com/) [![npm](https://img.shields.io/badge/npm-package-cb3837.svg)](https://www.npmjs.com/package/@enso-ui/uploader) [![Issues](https://img.shields.io/github/issues/enso-ui/uploader.svg)](https://github.com/enso-ui/uploader/issues) [![Merge Requests](https://img.shields.io/github/issues-pr/enso-ui/uploader.svg)](https://github.com/enso-ui/uploader/pulls) ## Description File upload components for Enso UI. ## Installation Install the package: ```bash yarn add @enso-ui/uploader ``` ## Features - exports `Uploader`, `EnsoUploader` as its public surface - keeps the Bulma presentation layer separate from the renderless/stateful layer where applicable ## Usage ```vue <script setup> import { Uploader, EnsoUploader } from '@enso-ui/uploader/bulma'; </script> ``` ## API ### `Uploader` Public export available from `src/bulma/Uploader.vue`. Props: - `isLarge` - `isRounded` - `isSmall` ### `EnsoUploader` Public export available from `src/bulma/EnsoUploader.vue`. Injects: - `http` - `i18n` ## Depends On - No additional Enso UI dependencies. ## Contributions are welcome. Pull requests are great, but issues are good too. Thank you to all the people who already contributed to Enso! ## License [MIT](https://github.com/enso-ui/uploader/blob/master/LICENSE)