New components for images

This commit is contained in:
Booklordofthedings 2024-12-21 22:38:45 +01:00
parent d939b0a2ba
commit 6fb1d6c681

View file

@ -69,4 +69,14 @@ static
toReturn.AddClass("lyb-info");
return toReturn;
}
public static HTML LybImage(StringView path, int32 width, int32 height, StringView title)
{
var toReturn = new HTML(
Img(path, width, height, title)..AddClass("lyb-img")
,title);
toReturn.Name = .("div");
toReturn.AddClass("lyb-img-container");
return toReturn;
}
}