MCPcopy Create free account
hub / github.com/primer/react / clickHandler

Function clickHandler

packages/react/src/ActionList/LinkItem.tsx:48–51  ·  view source on GitHub ↗
(event: React.MouseEvent)

Source from the content-addressed store, hash-verified

46 data-inactive={inactiveText ? true : undefined}
47 _PrivateItemWrapper={({children, onClick, ...rest}) => {
48 const clickHandler = (event: React.MouseEvent) => {
49 onClick && onClick(event)
50 props.onClick && props.onClick(event as React.MouseEvent<HTMLAnchorElement>)
51 }
52 return inactiveText ? (
53 <Box sx={merge(styles, sx as SxProp)} {...rest}>
54 {children}

Callers

nothing calls this directly

Calls 1

onClickFunction · 0.85

Tested by

no test coverage detected