Next: , Previous: , Up: API  


1.6 (hygguile components icon)

1.6.1 Procedures

Procedure: icon KEY: #:type #:weight #:icon-css

Construct an inline HTML icon element using Phosphor formatting.

type

A symbol designating the core identifier name of the Phosphor icon asset (e.g., 'star, 'gear).

weight

A configuration symbol defining line weight thickness variants. Accepts 'bold, 'light, or defaults to 'regular.

icon-css

List of symbols representing additional layout formatting rules or sizing CSS classes.

(icon #:type 'heart #:weight 'bold #:icon-css '(text-red-500 text-2xl))