Skip to content

Commit

Permalink
Merge pull request #31 from uploadcare/fix/add-import-style-in-readme
Browse files Browse the repository at this point in the history
fix(react-uploader): added import style in the Readme.md
  • Loading branch information
egordidenko authored May 30, 2024
2 parents 11a342d + a4a99b8 commit 16e8775
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/react-uploader/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Each component serves specific use cases and can be easily implemented into your

```jsx
import { FileUploaderRegular } from "@uploadcare/react-uploader";
import "@uploadcare/react-adapter/core.css";
import "@uploadcare/react-uploader/core.css";

<FileUploaderRegular pubkey="YOUR_PUBLIC_KEY"/>;
```
Expand All @@ -68,7 +68,7 @@ import "@uploadcare/react-adapter/core.css";

```jsx
import { FileUploaderInline } from "@uploadcare/react-uploader";
import "@uploadcare/react-adapter/core.css";
import "@uploadcare/react-uploader/core.css";

<FileUploaderInline pubkey="YOUR_PUBLIC_KEY"/>;
```
Expand All @@ -77,7 +77,7 @@ import "@uploadcare/react-adapter/core.css";

```jsx
import { FileUploaderMinimal } from "@uploadcare/react-uploader";
import "@uploadcare/react-adapter/core.css";
import "@uploadcare/react-uploader/core.css";

<FileUploaderMinimal pubkey="YOUR_PUBLIC_KEY"/>;
```
Expand All @@ -95,7 +95,7 @@ classes to the uploader `FileUploader[Regular | Minimal | Inline]` wrapper.

```jsx
import { FileUploaderRegular } from "@uploadcare/react-uploader";
import "@uploadcare/react-adapter/core.css";
import "@uploadcare/react-uploader/core.css";

<FileUploaderRegular className="fileUploaderWrapper" pubkey="YOUR_PUBLIC_KEY"/>;
```
Expand All @@ -117,7 +117,7 @@ import {
FileUploaderRegular,
UploadCtxProvider
} from "@uploadcare/react-uploader";
import "@uploadcare/react-adapter/core.css";
import "@uploadcare/react-uploader/core.css";

const Example = () => {
const uploaderRef = useRef < InstanceType < UploadCtxProvider > | null > (null);
Expand All @@ -139,7 +139,7 @@ Example:

```jsx
import { FileUploaderRegular } from "@uploadcare/react-uploader";
import "@uploadcare/react-adapter/core.css";
import "@uploadcare/react-uploader/core.css";

<FileUploaderRegular
pubkey="YOUR_PUBLIC_KEY"
Expand Down

0 comments on commit 16e8775

Please sign in to comment.