MCPcopy Index your code
hub / github.com/adobe/react-spectrum / className

Function className

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

Source from the content-addressed store, hash-verified

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

Callers 3

useRenderPropsFunction · 0.50
ColorFunction · 0.50
useRenderPropsFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected