Skip to content

Commit 090d90a

Browse files
committed
(docs): updated
1 parent 4244bcc commit 090d90a

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,22 @@ const ref = useRef<AnimatedModalObject>(null);
6666
<AnimatedModal ref={ref} />
6767
```
6868

69+
### Opening modal
70+
71+
```typescript
72+
// Open modal
73+
ref.current?.OpenModal()
74+
75+
// Open modal with animation
76+
ref.current?.OpenModal(ModalAnimation.Reveal)
77+
```
78+
79+
### Closing modal
80+
81+
```typescript
82+
ref.current?.CloseModal()
83+
```
84+
6985
### Modal Animations
7086

7187
For now, the library supports seven different animations:

0 commit comments

Comments
 (0)