add: top bar icons, menu styling
This commit is contained in:
@@ -6,13 +6,14 @@ type Props = {
|
||||
title: string
|
||||
} & LinkProps & React.AnchorHTMLAttributes<HTMLAnchorElement>
|
||||
|
||||
export default function MenuItem({ href, title, icon, className, ...restProps }: Props) {
|
||||
export default function MenuItem({ href, title, icon, className, children, ...restProps }: Props) {
|
||||
return (
|
||||
<Link
|
||||
{...restProps}
|
||||
href={href}
|
||||
className={`inline-flex gap-2 px-9 border-s-6 border-transparent text-disabled-text text-xs items-center font-light text-nowrap overflow-hidden h-6
|
||||
data-[active]:border-s-6 data-[active]:border-black data-[active]:text-black ${className}`}>
|
||||
className={`inline-flex gap-2 ps-8 border-transparent text-disabled-text text-xs items-center font-light text-nowrap overflow-hidden h-6
|
||||
data-[active]:border-s-6 data-[active]:border-black data-[active]:text-black ${className}`}>
|
||||
{children}
|
||||
{icon}
|
||||
<div>{title}</div>
|
||||
</Link>
|
||||
|
||||
Reference in New Issue
Block a user