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

Function HeaderLink

packages/dev/s2-docs/src/Link.tsx:150–163  ·  view source on GitHub ↗
(
  props: RACLinkProps & {staticColor?: 'auto' | 'white'; styles?: StyleString}
)

Source from the content-addressed store, hash-verified

148});
149
150export function HeaderLink(
151 props: RACLinkProps & {staticColor?: 'auto' | 'white'; styles?: StyleString}
152) {
153 let {staticColor, styles, ...otherProps} = props;
154 let ref = useRef(null);
155 return (
156 <BaseLink
157 {...otherProps}
158 ref={ref}
159 className={renderProps => mergeStyles(linkStyle({...renderProps, staticColor}), styles)}
160 style={pressScale(ref)}
161 />
162 );
163}

Callers

nothing calls this directly

Calls 2

mergeStylesFunction · 0.90
pressScaleFunction · 0.90

Tested by

no test coverage detected