How to use the @xstyled/styled-components.nav function in @xstyled/styled-components

To help you get started, we’ve selected a few @xstyled/styled-components examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github gregberge / gregberge.com / src / components / Navbar.js View on Github external
import React from 'react'
import styled, { css, up } from '@xstyled/styled-components'
import { useDialogState, Dialog, DialogDisclosure } from 'reakit/Dialog'
import { Container } from './Container'
import { Burger } from './Burger'
import { DarkModeSwitcher } from './DarkModeSwitcher'

export const Nav = styled.nav`
  padding: 3 3;
  margin: 0 auto;
  position: fixed;
  background-color: navbar-bg;
  box-shadow: soft;
  top: 0;
  left: 0;
  right: 0;
  height: 60;
  z-index: 200;
  backdrop-filter: blur(8px);

  ${up(
    'md',
    css`
      position: initial;
github argos-ci / argos / src / review / components / Navbar.js View on Github external
import styled from '@xstyled/styled-components'
import { FadeLink } from './Link'

export const Navbar = styled.nav`
  padding: 20 3;
  max-width: container;
  margin: 0 auto;
  display: flex;
`

export const NavbarBrandLink = styled(FadeLink)`
  flex: 1 0;
`

export const NavbarBrand = styled.h1`
  font-size: 20;
  color: darker;
  display: flex;
  align-items: center;
  font-weight: normal;
github smooth-code / bundle-analyzer / apps / client / src / components / Navbar.js View on Github external
import styled from '@xstyled/styled-components'
import { FadeLink } from './Link'

export const Navbar = styled.nav`
  padding: 20 3;
  max-width: container;
  margin: 0 auto;
  display: flex;
`

export const NavbarBrandLink = styled(FadeLink)`
  flex: 1 0;
`

export const NavbarBrand = styled.h1`
  font-size: 20;
  color: white;
  display: flex;
  align-items: center;
  font-weight: normal;