1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-23 15:29:42 +02:00
portainer/app/react/sidebar/SidebarItem/Wrapper.tsx
Ali 58d66d3142
chore(prettier): add tailwind prettier plugin [EE-4809] (#8221)
* add prettier plugin

* apply tailwind prettier formatting
2023-02-13 10:04:24 +13:00

29 lines
603 B
TypeScript

import { PropsWithChildren, AriaAttributes } from 'react';
import clsx from 'clsx';
interface Props {
className?: string;
label?: string;
}
export function Wrapper({
className,
children,
label,
...ariaProps
}: PropsWithChildren<Props> & AriaAttributes) {
return (
<li
className={clsx(
'flex',
className,
'min-h-8 text-gray-3 [&>a]:text-inherit [&>a]:hover:text-inherit [&>a]:hover:no-underline'
)}
aria-label={label}
// eslint-disable-next-line react/jsx-props-no-spreading
{...ariaProps}
>
{children}
</li>
);
}