MCPcopy Create free account
hub / github.com/adobe/react-spectrum / constructor

Method constructor

packages/@react-aria/test-utils/src/tabs.ts:40–51  ·  view source on GitHub ↗
(opts: TabsTesterOpts)

Source from the content-addressed store, hash-verified

38 private _direction: Direction;
39
40 constructor(opts: TabsTesterOpts) {
41 let {root, user, interactionType, direction} = opts;
42 this.user = user;
43 this._interactionType = interactionType || 'mouse';
44 this._direction = direction || 'ltr';
45
46 this._tablist = root;
47 let tablist = within(root).queryAllByRole('tablist');
48 if (tablist.length > 0) {
49 this._tablist = tablist[0];
50 }
51 }
52
53 /**
54 * Set the interaction type used by the tabs tester.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected