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    
@sushiswap/ui / app / NavItemList.tsx
Size: Mime:
import { FC, ReactElement } from 'react'

import { classNames } from '../index'
import { NavItem } from './NavItem'

export interface NavItemListProps {
  className?: string
  children: ReactElement<typeof NavItem> | Array<ReactElement<typeof NavItem>>
  hideOnMobile?: boolean
}

export const NavItemList: FC<NavItemListProps> = ({ children, className, hideOnMobile = true }) => {
  return <div className={classNames(className, hideOnMobile ? 'hidden lg:flex' : 'flex', 'gap-4')}>{children}</div>
}