achat-maison-albi-fr/src/components/ui/avatars/Avatar.astro
Emil Gulamov 3174ed252e Add Avatar component
The commit introduces an Avatar component in Astro. This component is primarily used for displaying user avatars, taking in source and alt text as props. It's highly reusable, providing versatility for displaying avatars across various features in the application.
2024-02-11 22:46:11 +04:00

14 lines
236 B
Text

---
const { src, alt = "Image Description" } = Astro.props;
interface Props {
src?: string;
alt?: string;
}
---
<img
class="inline-block h-8 w-8 rounded-full ring-2 ring-neutral-50 dark:ring-zinc-800"
src={src}
alt={alt}
/>