Skip to content

Material icons vs. symbols #4454

Closed Answered by falkoschindler
PeterMarkuson asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @PeterMarkuson,

NiceGUI supports both, icons as well as symbols: https://nicegui.io/documentation/icon#material_icons_and_symbols. You can distinguish both via a suffix:

ui.icon('home')
ui.icon('o_home')
ui.icon('r_home')
ui.icon('sym_o_home')
ui.icon('sym_r_home')

In PR #2613 we already thought about dropping support for icons, because they are deprecated and symbols are supposed to be a superset. But icons are so deeply baked into Quasar, it would get messy to replace them with symbols. E.g when writing

ui.checkbox().props('checked-icon=home')

we would need to detect the "checked-icon" prop, recognize that it defines an icon, and replace it with something like "sym_o_home". This is h…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@PeterMarkuson
Comment options

@falkoschindler
Comment options

Answer selected by PeterMarkuson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants