gatsby#GatsbyLinkProps TypeScript Examples

The following examples show how to use gatsby#GatsbyLinkProps. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: tab-navigation.tsx    From desktop with MIT License 6 votes vote down vote up
export function TabLink(
  props: Omit<GatsbyLinkProps<unknown>, "ref">
): JSX.Element {
  return (
    <Link
      {...props}
      activeClassName="active"
      sx={{
        fontFamily: `sans`,
        fontSize: 0,
        fontWeight: 500,
        lineHeight: `default`,
        textDecoration: `none`,
        display: `flex`,
        alignItems: `center`,
        color: `whiteFade.60`,
        py: 3,
        pr: 2,
        pl: 3,
        "&.active": {
          backgroundColor: `purple.80`,
          color: `white`,
        },
        textOverflow: `ellipsis`,
        overflow: `hidden`,
        whiteSpace: `nowrap`,
        cursor: `pointer`,
      }}
      css={{ WebkitAppRegion: `no-drag` }}
    />
  )
}