sidebar-separator-sample.js
using H5.Core;
using Tesserae;
using static H5.Core.dom;
using static Tesserae.UI;
namespace Tesserae.Tests
{
internal static class App
{
private static void Main()
{
var sidebar = Sidebar();
sidebar.AddHeader(new SidebarText("header", "Header"));
sidebar.AddContent(new SidebarButton("1", UIcons.Home, "Home"));
sidebar.AddContent(new SidebarSeparator("sep1"));
sidebar.AddContent(new SidebarButton("2", UIcons.User, "Profile"));
sidebar.AddContent(new SidebarSeparator("sep2", "More Options"));
sidebar.AddContent(new SidebarButton("3", UIcons.Settings, "Settings"));
document.body.style.overflow = "hidden";
MountCenteredToBody(sidebar.S().H(500.px()));
}
}
}