--- templateEngineOverride: njk layout: layouts/page.njk title: Avatar description: An image element with a fallback for representing the user. toc: - label: Usage id: usage --- {% from "macros/code_preview.njk" import code_preview %} {% from "macros/code_block.njk" import code_block %}
{% lucide "circle-alert" %}

There is no dedicated Avatar component in Basecoat.

{% set code %}
@hunvreus @shadcn
@hunvreus @shadcn @adamwathan
{% endset %} {{ code_preview("avatar", code | prettyHtml, "w-full max-w-md") }}

Usage

Avatars are just <img> elements styled with Tailwind utility classes.

{% set code_simple %} @hunvreus {% endset %} {{ code_block(code_simple | prettyHtml, "html") }}