@@ -86,7 +86,8 @@ Either `label` or `aria-labelledby` must be provided a string, or there will be
8686### Usage
8787
8888``` tsx
89- import TextInput , { getTestUtils } from ' @leafygreen-ui/text-input' ;
89+ import TextInput from ' @leafygreen-ui/text-input' ;
90+ import { getTestUtils } from ' @leafygreen-ui/text-input/testing' ;
9091
9192const utils = getTestUtils (lgId ?: string ); // lgId refers to the custom `data-lgid` attribute passed to `TextInput`. It defaults to 'lg-text_input' if left empty.
9293```
@@ -95,7 +96,8 @@ const utils = getTestUtils(lgId?: string); // lgId refers to the custom `data-lg
9596
9697``` tsx
9798import { render } from ' @testing-library/react' ;
98- import TextInput , { getTestUtils } from ' @leafygreen-ui/text-input' ;
99+ import TextInput from ' @leafygreen-ui/text-input' ;
100+ import { getTestUtils } from ' @leafygreen-ui/text-input/testing' ;
99101
100102...
101103
@@ -114,7 +116,8 @@ When testing multiple `TextInput`'s it is recommended to add the custom `data-lg
114116
115117``` tsx
116118import { render } from ' @testing-library/react' ;
117- import TextInput , { getTestUtils } from ' @leafygreen-ui/text-input' ;
119+ import TextInput from ' @leafygreen-ui/text-input' ;
120+ import { getTestUtils } from ' @leafygreen-ui/text-input/testing' ;
118121
119122...
120123
@@ -142,9 +145,12 @@ test('text-input', () => {
142145
143146``` tsx
144147import { render } from ' @testing-library/react' ;
145- import Toggle , { getTestUtils as getToggleTestUtils } from ' @leafygreen-ui/toggle' ;
146- import TextInput , { getTestUtils as getTextInputTestUtils } from ' @leafygreen-ui/text-input' ;
147- import TextArea , { getTestUtils as getTextAreaTestUtils } from ' @leafygreen-ui/text-area' ;
148+ import Toggle from ' @leafygreen-ui/toggle' ;
149+ import { getTestUtils as getToggleTestUtils } from ' @leafygreen-ui/toggle/testing' ;
150+ import TextInput from ' @leafygreen-ui/text-input' ;
151+ import { getTestUtils as getTextInputTestUtils } from ' @leafygreen-ui/text-input/testing' ;
152+ import TextArea from ' @leafygreen-ui/text-area' ;
153+ import { getTestUtils as getTextAreaTestUtils } from ' @leafygreen-ui/text-area/testing' ;
148154
149155...
150156
0 commit comments