package examples import "github.com/Tend-Stack/TendUI/v2026/components" templ ExampleIcon() {
Icons inherit text color and stay sharp at every size. Visible words remain the clearest way to describe an action.
@components.Icon(components.IconProps{Name: components.IconInfo, Size: components.IconSizeSmall}) Small, @components.Icon(components.IconProps{Name: components.IconInfo}) medium, and @components.Icon(components.IconProps{Name: components.IconInfo, Size: components.IconSizeLarge}) large sizes follow the surrounding text scale.
Standalone image with its own accessible label: @components.Icon(components.IconProps{Name: components.IconCheck, Label: "Complete"})
@components.Grid(components.GridProps{}) { for _, name := range components.IconNames() {
@components.Icon(components.IconProps{Name: name})
{ string(name) }