({children, isLongForm, ...props})
| 92 | }); |
| 93 | |
| 94 | export 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 | |
| 107 | export function H2({children, ...props}) { |
| 108 | let {hoverProps, isHovered} = useHover({}); |
nothing calls this directly
no test coverage detected