Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(react-uploader): added import style in the Readme.md #30

Merged
merged 1 commit into from
May 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions packages/react-uploader/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,23 +58,26 @@ Each component serves specific use cases and can be easily implemented into your
### Regular

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

<FileUploaderRegular pubkey="YOUR_PUBLIC_KEY"/>;
```

### Inline

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

<FileUploaderInline pubkey="YOUR_PUBLIC_KEY"/>;
```

### Minimal

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

<FileUploaderMinimal pubkey="YOUR_PUBLIC_KEY"/>;
```
Expand All @@ -91,7 +94,8 @@ You can customize the appearance of the React uploader using the className prop,
classes to the uploader `FileUploader[Regular | Minimal | Inline]` wrapper.

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

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

const Example = () => {
const uploaderRef = useRef < InstanceType < UploadCtxProvider > | null > (null);
Expand All @@ -133,7 +138,8 @@ The principle of converting events from blocks to React Uploader:
Example:

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

<FileUploaderRegular
pubkey="YOUR_PUBLIC_KEY"
Expand Down