mirror of
https://github.com/dnwSilver/tld.git
synced 2025-04-17 02:26:19 +00:00
20 lines
480 B
C#
20 lines
480 B
C#
using TUI.Engine.Attributes;
|
|
using TUI.Engine.Components;
|
|
using TUI.Engine.Theme;
|
|
|
|
namespace TUI.Controls.Components;
|
|
|
|
public class BreadCrumbsComponent : ComponentBase
|
|
{
|
|
private readonly List<string> _crumbs = new() { " " };
|
|
|
|
public BreadCrumbsComponent(params string[] crumbs)
|
|
{
|
|
_crumbs.AddRange(crumbs);
|
|
}
|
|
|
|
protected override Sketch DrawComponent(Size minSize)
|
|
{
|
|
return new Sketch(string.Join(" ".Hint(), _crumbs).Hint());
|
|
}
|
|
} |