bonsai-analyzer
Version:
Trim your dependency tree.
22 lines (18 loc) • 317 B
JavaScript
/*
* @flow
*/
import './OffsetPageAnchor.css';
type MergeProps = {
className?: string,
};
export default function OffsetPageAnchor(
anchor: string,
props: MergeProps = {},
) {
return {
...props,
className: ['OffsetPageAnchor', props.className].join(' '),
tabIndex: -1,
id: anchor,
};
}