feat: header component

feat: dropdown component
feat: avatar component
This commit is contained in:
2023-12-30 13:01:04 +01:00
parent 7416196221
commit 0ccc447e40
31 changed files with 726 additions and 58 deletions

View File

@@ -0,0 +1,23 @@
import { CSSProperties, ComponentPropsWithoutRef } from 'react'
import clsx from 'clsx'
import s from './avatar.module.scss'
export type AvatarProps = ComponentPropsWithoutRef<'img'> & {
size?: CSSProperties['width']
}
export const Avatar = ({ className, size = '36px', style, ...rest }: AvatarProps) => {
return (
<img
className={clsx(className, s.avatar)}
style={{
...style,
height: size,
width: size,
}}
{...rest}
/>
)
}