mirror of
				https://github.com/nsnail/spectre.console.git
				synced 2025-11-01 01:25:27 +08:00 
			
		
		
		
	Create panel documentation
This commit is contained in:
		| @@ -0,0 +1,16 @@ | ||||
| using Spectre.Console; | ||||
|  | ||||
| namespace Generator.Commands.Samples | ||||
| { | ||||
|     internal class PanelSample : BaseSample | ||||
|     { | ||||
|         public override void Run(IAnsiConsole console) | ||||
|         { | ||||
|             var panel = new Panel("[red]Spaghetti\nLinguini\nFettucine\nTortellini\nCapellini\nLasagna[/]"); | ||||
|             panel.Header = new PanelHeader("[underline]Pasta Menu[/]", Justify.Center); | ||||
|             panel.Border = BoxBorder.Double; | ||||
|             panel.Padding = new Padding(2, 2, 2, 2); | ||||
|             console.Write(panel); | ||||
|         } | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 Patrick
					Patrick