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

Function H1

packages/dev/s2-docs/src/typography.tsx:94–105  ·  view source on GitHub ↗
({children, isLongForm, ...props})

Source from the content-addressed store, hash-verified

92});
93
94export function H1({children, isLongForm, ...props}) {
95 return (
96 <h1
97 {...props}
98 data-anchor-link
99 id="top"
100 style={{'--width-per-em': getTextWidth(children)} as any}
101 className={h1({isLongForm})}>
102 {children}
103 </h1>
104 );
105}
106
107export function H2({children, ...props}) {
108 let {hoverProps, isHovered} = useHover({});

Callers

nothing calls this directly

Calls 1

getTextWidthFunction · 0.90

Tested by

no test coverage detected