Browse Source

extend documentation for ui.icon

Falko Schindler 1 năm trước cách đây
mục cha
commit
da0ec00acf
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      nicegui/elements/icon.py

+ 1 - 1
nicegui/elements/icon.py

@@ -17,7 +17,7 @@ class Icon(TextColorElement):
 
 
         `Here <https://fonts.google.com/icons?icon.set=Material+Icons>`_ is a reference of possible names.
         `Here <https://fonts.google.com/icons?icon.set=Material+Icons>`_ is a reference of possible names.
 
 
-        :param name: name of the icon
+        :param name: name of the icon (snake case, e.g. `add_circle`)
         :param size: size in CSS units, including unit name or standard size name (xs|sm|md|lg|xl), examples: 16px, 2rem
         :param size: size in CSS units, including unit name or standard size name (xs|sm|md|lg|xl), examples: 16px, 2rem
         :param color: icon color (either a Quasar, Tailwind, or CSS color or `None`, default: `None`)
         :param color: icon color (either a Quasar, Tailwind, or CSS color or `None`, default: `None`)
         """
         """