1. Reference
  2. Text

<figcaption>

The caption under a figure's picture, set as its own line of text.

Text
figcaption.ham
<figure style="w-full">
    <img src="https://hypeapps.dev/gallery/assets/city.jpg"
         style="w-full h-200 rounded-xl"
         fit="cover"/>
    <figcaption style="muted text-sm mt-8">Fig. 1: The old town at night, from the harbor wall</figcaption>
</figure>
The snippet drawn by Hype Apps on a phone, in light mode The snippet drawn by Hype Apps on a phone, in dark mode
This snippet as Hype Apps draws it on a phone. It follows this page's light or dark theme.

Attributes

NameWhat it doesDefault
style Style classes
string

Any tag also takes gestures: @on.tap, @on.longpress, @on.doubletap and @on.swipeleft (and right, up and down). @click runs on a tap too.

This page is also Markdown, and all of HAM is in llms.txt.