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

Function className

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

Source from the content-addressed store, hash-verified

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

Callers 4

NavigationTree.tsxFile · 0.50
useRenderPropsFunction · 0.50
ColorFunction · 0.50
useRenderPropsFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected