Icons

Jeder Name, den tuix-icon kennt.

Das Icon-Set ist geschlossen: tuix-icon zeichnet eines der 88 Icons unten und sonst nichts. Der Enum-Eintrag ist der Attributwert in SCREAMING_CASE, IconName.ARROW_DOWN ist also name="arrow-down".

<tuix-icon name="arrow-down"></tuix-icon>
import { TuixIcon } from 'tuix-webcomponents/react'
import { IconName } from 'tuix-webcomponents'
 
;<TuixIcon name={IconName.ARROW_DOWN} />

Unten stehen alle Icons. Das Feld über dem Raster filtert sie nach Namen, und ein Klick kopiert den Namen in die Zwischenablage. In jeder Grösse und Farbe stehen sie im Storybook.

Namen

Enum-Einträge

Eintragname
IconName.ARROW_DOWNarrow-down
IconName.ARROW_LEFTarrow-left
IconName.ARROW_UParrow-up
IconName.ARROW_RIGHTarrow-right
IconName.SEARCHsearch
IconName.EYE_ONeye-on
IconName.EYE_OFFeye-off
IconName.EYE_CLOSE_LINEeye-close-line
IconName.TRIANGLE_EXCLAMATIONtriangle-exclamation
IconName.CIRCLE_Xcircle-x
IconName.LOADERloader
IconName.LOADER_CIRCLEloader-circle
IconName.CIRCLE_CHECKcircle-check
IconName.CHEVRON_DOWNchevron-down
IconName.CHEVRON_UPchevron-up
IconName.CHEVRON_LEFTchevron-left
IconName.CHEVRON_RIGHTchevron-right
IconName.CHECKcheck
IconName.NAV_HAMBURGUERnav-hamburguer
IconName.SUNsun
IconName.MOONmoon
IconName.BOOKMARKbookmark
IconName.UPLOADupload
IconName.DOWNLOADdownload
IconName.MAP_PINmap-pin
IconName.PHONEphone
IconName.MAILmail
IconName.MAILSmails
IconName.LAYERSlayers
IconName.SENDsend
IconName.FILEfile
IconName.FORMAT_LISTformat-list
IconName.SAVEsave
IconName.SQUARE_CODEsquare-code
IconName.BRACESbraces
IconName.ADD_MAILadd-mail
IconName.MAIL_LOGOmail-logo
IconName.BUILDINGbuilding
IconName.CODEcode
IconName.USER_PLUSuser-plus
IconName.FACEBOOKfacebook
IconName.TWITTERtwitter
IconName.LINKEDINlinkedin
IconName.SHAREshare
IconName.COPYcopy
IconName.GOOGLEgoogle
IconName.BELLbell
IconName.GEARgear
IconName.LOGOUTlogout
IconName.CIRCLE_EXCLAMATIONcircle-exclamation
IconName.CAMERAcamera
IconName.PENCILpencil
IconName.Xx
IconName.PLUSplus
IconName.INVOICEinvoice
IconName.DELETEdelete
IconName.TRIANGLE_ARROW_DOWNtriangle-arrow-down
IconName.USERSusers
IconName.CLOCKclock
IconName.CHECK_CLOCKcheck-clock
IconName.GLOBEglobe
IconName.CALENDARcalendar
IconName.STATSstats
IconName.HOLIDAYSholidays
IconName.TRENDING_UPtrending-up
IconName.ARCHIVEarchive
IconName.ACCESS_TOKENaccess-token
IconName.RESIZEresize
IconName.CHATchat
IconName.MESSAGE_CIRCLEmessage-circle
IconName.BOOKbook
IconName.BOOK_PLUSbook-plus
IconName.BOOKSbooks
IconName.BOOK_SEARCHbook-search
IconName.MORE_HORIZONTALmore-horizontal
IconName.BOTbot
IconName.SCROLL_DOWNscroll-down
IconName.PLAYplay
IconName.EXTERNAL_LINKexternal-link
IconName.TRIANGLE_RIGHTtriangle-right
IconName.FILE_PLUSfile-plus
IconName.FILE_TEXTfile-text
IconName.HIGHLIGHThighlight
IconName.MCP_LOGOmcp-logo
IconName.ENDPOINTSendpoints
IconName.PLAY_OUTLINEplay-outline
IconName.REFRESHrefresh
IconName.SHIELDshield

Fehlt ein Icon?

Der Satz ist geschlossen: ein Icon, das oben nicht aufgeführt ist, lässt sich nicht an name übergeben. Neue Icons kommen in die Bibliothek selbst, auf einer 24x24-viewBox: die Form wird mit stroke gezeichnet, das äussere <svg> bleibt auf fill="none". Jedes stroke wird dann beim Rendern aus color neu gefärbt, und fill füllt die umschlossene Fläche, sobald es gesetzt ist. Ein Icon muss also nur einmal gezeichnet werden und funktioniert dann in jeder Farbe und in beiden Themes. Ein Issue im Repository mit dem SVG genügt, dann kommt es mit dem nächsten Release.

Auf dieser Seite