Skip to content

Commit bd07d56

Browse files
callmenickdiasbruno
authored andcommitted
Adds testId prop and useage to documentation
1 parent 4a120a9 commit bd07d56

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: docs/index.md

+5
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,11 @@ import ReactModal from 'react-modal';
136136
data={
137137
{ background: "green" }
138138
/* Additional data attributes (optional). */}
139+
140+
testId={
141+
""
142+
/* String testId that renders a data-testid attribute in the DOM,
143+
useful for testing. */}
139144

140145
overlayRef={
141146
setOverlayRef

0 commit comments

Comments
 (0)