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

Function MyMenuItem

packages/react-aria-components/stories/utils.tsx:30–44  ·  view source on GitHub ↗
(props: MenuItemProps)

Source from the content-addressed store, hash-verified

28};
29
30export const MyMenuItem = (props: MenuItemProps): JSX.Element => {
31 return (
32 <MenuItem
33 {...props}
34 className={({isFocused, isSelected, isOpen, isFocusVisible}) =>
35 classNames(styles, 'item', {
36 focused: isFocused,
37 selected: isSelected,
38 open: isOpen,
39 focusVisible: isFocusVisible
40 })
41 }
42 />
43 );
44};
45
46export const LoadingSpinner = ({style = {}}: {style?: React.CSSProperties}): JSX.Element => {
47 return (

Callers

nothing calls this directly

Calls 1

classNamesFunction · 0.90

Tested by

no test coverage detected