Helper module used to build Icon structure.
(MCP protocol: 2025-11-25)
Short example:
%Icon{}
|> Icon.src("https://img.com/icon.png")
|> Icon.mime_type("image/png")
|> Icon.sizes(["16x16"])
|> Icon.theme(:dark)
|> Icon.build()Result:
%{
mimeType: "image/png",
theme: :dark,
src: "https://img.com/icon.png",
sizes: ["16x16"]
}Specification: Icon
Fields
| Field | Setter | Type | Required |
|---|---|---|---|
src | src/2 | string | yes |
mimeType | mime_type/2 | string | no |
sizes | sizes/2 | list | no |
theme | theme/2 | theme() | no |