0.2.12 • Published 11 months ago

@highoutput/hds-file-upload v0.2.12

Weekly downloads
-
License
MIT
Repository
-
Last release
11 months ago

Getting started

We aim to build a library of custom ReactJS components that implements our unique UI design conventions. The ReactJS components will be based primarily on Chakra UI components. React Storybook will be used for documentation and testing.

Commands

To install package, use:

npm i @highoutput/file-upload

Usage

import { FileUpload, ProgressBox } from '@highoutput/hds-file-upload';

export const FileUploadSample = () => {
  const [files, setFiles] = useState([]);

  const handleChange = (event) => Promise.resolve(setFiles(event.target.files));

  return (
    <ThemeProvider>
      <Flex justify="center">
        <FileUpload {...args} onChange={handleChange} />
      </Flex>

      {(files as File[])?.length ? (
        <Flex justify="center">
          <ProgressBox
            file={files}
            onDelete={(): void => setFiles([])}
            value={80}
          />
        </Flex>
      ) : (
        <></>
      )}
    </ThemeProvider>
  );
};
0.2.12

11 months ago

0.2.11

11 months ago

0.2.1

1 year ago

0.2.9

11 months ago

0.2.8

12 months ago

0.1.10

1 year ago

0.1.12

1 year ago

0.1.13

1 year ago

0.1.14

1 year ago

0.1.15

1 year ago

0.1.8

1 year ago

0.1.9

1 year ago

0.1.7

1 year ago

0.1.5-alpha.0

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.5

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago