From 0c93ed39614b49cefcd7a9e46f02231571d626d1 Mon Sep 17 00:00:00 2001 From: Egor Didenko Date: Tue, 28 May 2024 11:21:31 -0400 Subject: [PATCH] fix(react-uploader): added import style in the Readme.md --- packages/react-uploader/README.md | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/packages/react-uploader/README.md b/packages/react-uploader/README.md index f1d7d61..421b6b7 100644 --- a/packages/react-uploader/README.md +++ b/packages/react-uploader/README.md @@ -58,7 +58,8 @@ 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"; ; ``` @@ -66,7 +67,8 @@ import {FileUploaderRegular} from "@uploadcare/react-uploader"; ### Inline ```jsx -import {FileUploaderInline} from "@uploadcare/react-uploader"; +import { FileUploaderInline } from "@uploadcare/react-uploader"; +import "@uploadcare/react-adapter/core.css"; ; ``` @@ -74,7 +76,8 @@ import {FileUploaderInline} from "@uploadcare/react-uploader"; ### Minimal ```jsx -import {FileUploaderMinimal} from "@uploadcare/react-uploader"; +import { FileUploaderMinimal } from "@uploadcare/react-uploader"; +import "@uploadcare/react-adapter/core.css"; ; ``` @@ -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"; ; ``` @@ -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); @@ -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";