Ikon
För att visa en ikon använder vi komponenten, icon.
Textområdeskomponenten i JUI representerar HTML <icon/>
.
Ikoner som finns på Adobe Spectrum Icons är kompatibla med vår app.
const iconJSON = {
"component": "icon", //tells the component name
"icon": "info", // name of the icon to be used
"size": "S", // size of the icon
"title": "Information" // tooltip corresponding to the icon.
},
ikoner kan också läggas till knappar.
Den återgivna ikonen ser ut så här:
recommendation-more-help
11125c99-e1a1-4369-b5d7-fb3098b9b178