Skip to main content

Upload

img

Usage​

import React from 'react'
import { Upload } from 'qdm-component-library'

function App() {
return (
<Upload
onChange={(result, file) => console.log(result, file)}
label="Click to Upload"
/>
)
}
export default App

Reference​

Props​

variant​

props for providing two types of variant for Upload Component 'classic'|'avatar'

label​

props for the providing label for Upload Component string

inLineStyles​

props give addition styling to the Upload Component type Object

onChange​

props for receiving the data from Upload Component type Function

showIcon​

props for showing icon default is true boolean

labelSize​

props for giving font size to the label 'small'|'medium'|'large'

labelColor​

props for giving color to the label string

iconColor​

props for giving color to the icon string

iconSize​

props for giving height and width to the icon number