Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@skava/ui / src / components / features / SkipNav / Anchor.tsx
Size: Mime:
import React from 'react'
import { AnchorProps } from './typings'

/**
 * @description this makes the link go to `main`
 * @todo this file is unused, but should be used...
 */
class Anchor extends React.PureComponent<AnchorProps> {
  static defaultProps = {
    identifier: 'main',
  }

  render() {
    const { identifier } = this.props
    return <a name={identifier} id={identifier} tabIndex="-1" />
  }
}

export { Anchor }
export default Anchor