Skip to content

Commit 5d5294b

Browse files
authored
Update README.md
1 parent d371cd3 commit 5d5294b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,9 @@ const {
173173
// this allows you to interact directly with the modal
174174
modalRef,
175175
} = useModal({
176-
background: 'rgba(0, 0, 0, 0.5)', // sets the color of the backdrop, if nothing is set, there will be no backdrop
176+
// sets the color of the backdrop, if nothing is set, the backdrop will be transparent unless it's set in the Provider
177+
// setting to `null` removes any background set in the `Provider`
178+
background: 'rgba(0, 0, 0, 0.5)',
177179
closeOnOutsideClick: true,
178180
closeOnEsc: true,
179181
bindTo, // attach the portal to this node in the DOM

0 commit comments

Comments
 (0)