Closed skreutzberger closed 2 years ago
The type of the effects
attribute must be a string. For example,
effects="crop,enhance,sharp"
Also, you need to import uploadcare-widget-tab-effects
.
import React from "react";
import ReactDOM from "react-dom";
import { Widget } from "@uploadcare/react-widget";
import Effects from "uploadcare-widget-tab-effects";
import "./styles.css";
function App() {
return (
<div className="App">
<Widget
publicKey="demopublickey"
effects="crop,blur,sharp,grayscale,enhance,flip,rotate"
customTabs={{ preview: Effects }}
/>
</div>
);
}
const rootElement = document.getElementById("root");
ReactDOM.render(<App />, rootElement);
Awesome, it works! Thank you for the fast reply.
Question
I tried to get the effects bar at the bottom of the widget to work but somehow it never shows up?! What am I doing wrong?
Here is my widget:
I also tried it with
effects="crop,enhance,sharp"
but it also did not work.This is what I see:
Thank you!