Repository URL to install this package:
|
Version:
0.0.0 ▾
|
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>
}