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

Function HeaderLink

packages/dev/s2-docs/src/Link.tsx:150–165  ·  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 // oxlint-disable react/react-compiler
156 return (
157 <BaseLink
158 {...otherProps}
159 ref={ref}
160 className={renderProps => mergeStyles(linkStyle({...renderProps, staticColor}), styles)}
161 style={pressScale(ref)}
162 />
163 );
164 // oxlint-enable react/react-compiler
165}

Callers

nothing calls this directly

Calls 2

mergeStylesFunction · 0.90
pressScaleFunction · 0.90

Tested by

no test coverage detected