Skip to main content

Basic usage

Component have to be imported to your project and then you can use it in your template. Here is an example of usage.

Functionnal component​

Component can be used as a function component.

Code example​

import '@fazio/ipfs-upload-button';

export function App() {
const token = 'WEB3STORAGE_APIKEY';

return (
<>
<div/>
<web3-upload-btn token={token}></web3-upload-btn>
<div />
</>
);
}
export default App;

Preview result​

Upload to IPFS