--- layout: layouts/component.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 accordion component in Basecoat.

{% set code %}@hunvreus{% endset %} {{ code_preview("avatar", code, "max-w-md") }}

Usage

Avatars are fairly simple to implement with Tailwind. The example above shows how to implement one with Tailwind and an <img> element. You can find more examples in the kitchen sink.

{{ code_block(code) }}