{# @description daisyUI's chat: a placement side, an optional avatar, header and footer, and a coloured bubble holding the message. The side is visual only, so name the speaker in the header slot. See the mockup.window entry for a two-sided conversation. #} {# @prop placement:select['start','end'] | default:"start" | description:"Which side of the chat the bubble sits on." #} {# @prop variant:select['neutral','primary','secondary','accent','info','success','warning','error'] | description:"Bubble colour." #} {# @prop image:text | description:"Content shown in chat-image beside the bubble, usually a . Fill the image slot for markup." #} {# @prop header:text | description:"Content shown in chat-header above the bubble, such as the speaker's name. Fill the header slot for markup." #} {# @prop footer:text | description:"Content shown in chat-footer below the bubble, such as a delivery status. Fill the footer slot for markup." #} {# @prop class:text | description:"Extra classes added to the chat root." #} {# @slot Hello! — The message, shown in the chat-bubble. #} {# @slot:image — An avatar, shown in chat-image. #} {# @slot:header Anonymous — The speaker's name and a time, shown in chat-header. #} {# @slot:footer Delivered — A delivery status, shown in chat-footer. #} {% load daisy_cotton %}
{% if image %}
{{ image }}
{% endif %} {% if header %}
{{ header }}
{% endif %}
{{ slot }}
{% if footer %}{% endif %}