Skip to content

Your First Comet Component

David Ortinau edited this page Aug 27, 2019 · 2 revisions

Comet favors an atomic architecture and customization via extensions. What that means is that your components ought to be fairly small, and you’ll customize them with extension methods that ready like a beautiful story.

[Body]
View body() => new VStack(){
	new Text(“Hello”)
		.FontSize(32)
		.Color(Color.Black),
	new Button(“Get Started”)
		.FontSize(24)
		.Background(Color.Black)
		.Color(Color.White)
		.Frame(320, 40)
};
Clone this wiki locally