# Icon Library `@lcui/fluent-icons` is an icon library adapted for LCUI. All icons come from Microsoft's [fluentui-system-icons](https://github.com/microsoft/fluentui-system-icons) project. ## Installation ```sh npm install @lcui/fluent-icons ``` ## Choosing icons Search and select icons in the browser below. For example, the zoom-in icon is typically named "Zoom In" in English. Fluent UI System Icons provides direction-related metadata, but its icon data has no category field, so the detail panel does not show category tags. fluentui-system-icons icons are available in sizes like 16, 20, and 24, named in the format "icon name + size + style". `@lcui/fluent-icons` uses the naming format "icon name + style", and when the style is Regular it can be omitted. ## Usage ```tsx import { ZoomIn } from "@lcui/fluent-icons"; ``` The default glyph is regular 24; when an icon has no regular 24 glyph, the closest available regular size is used (ties choose the smaller size). `size` selects a design glyph size and, when explicitly set, also sets its display size. `fontSize` changes only the rendered size without changing glyph selection. If neither is set, the icon inherits the surrounding text size, so `className` or `style` can also control the display size: ```tsx ``` In C, create a Fluent icon with the convenience constructor. In XML, omitting `library` defaults to Fluent; specify it only when using another icon library: ```c ui_widget_t *icon = ui_create_fluent_icon("dismiss"); ``` ```xml ```