Skip to content

Commit d06c436

Browse files
Added custom alert component
1 parent 60f92e7 commit d06c436

5 files changed

Lines changed: 51 additions & 9 deletions

File tree

README.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,6 @@ React component prop. types:
5555
- Required: **true**
5656
- Description: Provides a way to fetch the PDF document
5757

58-
- `loader`:
59-
60-
- Type: _Node_
61-
- Required: **false**
62-
- Description: A custom loader element that will be shown while the PDF is loading
63-
6458
- `page`:
6559

6660
- Type: _Number_
@@ -163,6 +157,18 @@ React component prop. types:
163157
- Required: **false**
164158
- Description: By default rotation buttons are displayed, but can be hidden by passing this prop
165159

160+
- `loader`:
161+
162+
- Type: _Node_
163+
- Required: **false**
164+
- Description: A custom loader element that will be shown while the PDF is loading
165+
166+
- `alert`:
167+
168+
- Type: _Node_
169+
- Required: **false**
170+
- Description: A custom alerf element that will be shown on error
171+
166172
- `protectContent`:
167173

168174
- Type: _Boolean_

0 commit comments

Comments
 (0)