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

Function className

packages/react-aria-components/test/Tabs.test.js:346–346  ·  view source on GitHub ↗
({isDisabled})

Source from the content-addressed store, hash-verified

344
345 it('should support disabled state on tab', () => {
346 let className = ({isDisabled}) => (isDisabled ? 'disabled' : '');
347 let {getAllByRole} = renderTabs({disabledKeys: ['a']}, {className}, {className});
348 let tab = getAllByRole('tab')[0];
349

Callers 6

NavigationTree.tsxFile · 0.50
withDefaultClassNameFunction · 0.50
Wizard.tsxFile · 0.50
useRenderPropsFunction · 0.50
ColorFunction · 0.50
useRenderPropsFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected