0.2.12 • Published 2 years ago
@highoutput/hds-file-upload v0.2.12
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
2 years ago
0.2.11
2 years ago
0.2.1
2 years ago
0.2.9
2 years ago
0.2.8
2 years ago
0.1.10
2 years ago
0.1.12
2 years ago
0.1.13
2 years ago
0.1.14
2 years ago
0.1.15
2 years ago
0.1.8
2 years ago
0.1.9
2 years ago
0.1.7
2 years ago
0.1.5-alpha.0
2 years ago
0.1.4
2 years ago
0.1.3
2 years ago
0.1.5
2 years ago
0.1.2
2 years ago
0.1.1
2 years ago