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

Function CodeLink

packages/dev/s2-docs/src/Link.tsx:78–89  ·  view source on GitHub ↗
(props: RACLinkProps)

Source from the content-addressed store, hash-verified

76}
77
78export function CodeLink(props: RACLinkProps) {
79 return (
80 <RACLink
81 {...props}
82 style={({isHovered}) => ({
83 cursor: 'pointer',
84 textDecoration: 'underline',
85 textDecorationStyle: isHovered ? 'solid' : 'dotted'
86 })}
87 />
88 );
89}
90
91const titleLink = style({
92 ...focusRing(),

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected