1. Reference
  2. Display

<icon>

A Material Symbols icon, with its style, weight, size and color set in its name.

Display
icon.ham
<row style="gap-24 items-center">
    <icon name="favorite fill size-40 red"/>
    <icon name="star rounded size-40 amber"/>
    <icon name="home outlined size-40"/>
    <icon name="settings sharp 300 size-40 blue"/>
</row>
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
color Icon color
color
icon Alias for name
string
help
name Icon name from Material icons
string
help
size Icon size in pixels
number
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.

Guides and recipes that use it

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