From 6fb1d6c6815b941715eb61b86c80d2fab432f35a Mon Sep 17 00:00:00 2001 From: Booklordofthedings Date: Sat, 21 Dec 2024 22:38:45 +0100 Subject: [PATCH] New components for images --- src/Components.bf | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Components.bf b/src/Components.bf index d78fe01..46f4215 100644 --- a/src/Components.bf +++ b/src/Components.bf @@ -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; + } } \ No newline at end of file