Icon
An outline icon, read aloud only with a label. Give none beside words that say the same.
Props
name: icon name — Its meaning, lower case, hyphenated: add edit remove search filter warning success person file database table measure pivot left-join. Try others: a wrong one is refused with the closest.size(optional): 16 | 20 | 24label(optional): string | binding | callminHeight(optional): integer — The least height of this component's box, in pixels. It is as tall as what it holds, or this, whichever is more.
Every name
activity, add, add-database, add-person, adjust, agent, align-left, align-right, anti-join, archive, area-chart, attach, back, bar-chart, blocked, bold, book, bookmark, bottom-panel, branch, bug, calendar, chat, close, cloud, code, code-file, cohort, collapse, collapse-all, column, column-chart, columns, comment, compare, compute, confirm, confirm-all, conversations, dark, dashboard, database, decline, dimension, distribution, download, drag-handle, duplicate, edit, erase, error, expand, expand-all, export, failure, favorite, file, filter, first, fit-to-view, flow, folder, formula, forward, full-join, gauge, generate, go-into, grid-view, help, hide, hide-sidebar, history, home, image, import, incremental-load, info, inner-join, italic, key, label, last, layers, left-join, left-panel, library, light, like, line-chart, lineage-downstream, lineage-upstream, link, list-view, load-data, loading, lock, map, maximize, measure, menu, merge, microphone, minimize, model, money, more, more-below, move, move-down, move-up, new-file, new-folder, next, note, notifications, number, open-elsewhere, open-folder, organization, package, pause, pending, people, percent, person, pie-chart, pin, pivot, place, plugin, power, previous, print, protected, query, redo, refresh, remove, remove-person, rename, reset, review, right-panel, rows, run, save, scatter-chart, schedule, schema-drift, search, search-database, select-all, semantic-model, send, server, settings, share, shield, show, show-sidebar, sign-in, sign-out, sort, sort-ascending, sort-descending, split-view, spreadsheet, stacked-chart, stop, subtract, success, table, tag, target, tasks, terminal, test, text, text-file, theme, time, tree, trend, undo, upload, verified, warning, wider, workflow, zoom-in, zoom-out
Example
The same component written three ways. Each draws the same surface.
As JSX, with analyticsMarkup from @surfaces-ui/spec/react:
<Ui.Icon name="undo" />As an agent sends it (one component of an A2UI updateComponents message):
{
"id": "icon",
"component": "Icon",
"name": "undo"
}As a json-render spec, which fromJsonRender converts:
{
"root": "icon",
"elements": {
"icon": {
"type": "Icon",
"props": {
"name": "undo"
}
}
}
}