icon(
name,
size: 16,
variant: :outline, # or :filled
label: nil, # accessible name; omit for decorative icons
**html
)
Use the Tabler name (file-text, alert-triangle; underscores work too). Icons are decorative and hidden from screen readers unless you pass label:. Buttons take icon: directly.
calendar
target
folder
list
search
filter
plus
check
x
pencil
trash
copy
download
refresh
settings
lock
building
file-text
clock
alert-triangle
info-circle
chevron-down
dots-vertical
columns
repeat
<%= cluster(gap: "12px 4px") do %>
<% %w[calendar target folder list search filter plus check x pencil trash copy download refresh settings lock building file-text clock alert-triangle info-circle chevron-down dots-vertical columns repeat].each do |name| %>
<span style="display: flex; flex-direction: column; align-items: center; gap: 6px; width: 92px; font-size: 11px; color: var(--muted)">
<span style="color: var(--ink)"><%= icon name, size: 20 %></span><%= name %>
</span>
<% end %>
<% end %>
All icons
Every Tabler icon ships with the gem, outline and filled. Search the set and click an icon to copy its helper call.
Options
| Option | What it does |
|---|---|
name | Tabler icon name, or the name of an SVG in a configured icon path. |
variant | :outline (default, stroked) or :filled (solid; fewer icons have it). |
size | Pixels. 16 in controls, 14 for chevrons, 20 at most elsewhere. |
label | Accessible name; makes the icon role=img instead of hidden. |