浏览代码

extend documentation for ui.icon

Falko Schindler 1 年之前
父节点
当前提交
da0ec00acf
共有 1 个文件被更改,包括 1 次插入1 次删除
  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.
 
-        :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 color: icon color (either a Quasar, Tailwind, or CSS color or `None`, default: `None`)
         """