Component
Component
s are the basic graphical building blocks of Vico.
There are several built-in implementations, which cover most use cases:
TextComponent
draws text. It supports font customization, line breaks, rotation, backgrounds, and more.ShapeComponent
draws Shape
s, for which you can define a color, a stroke, and more.LineComponent
, which is a type of ShapeComponent
, draws horizontal and vertical lines.LayeredComponent
draws two Component
s on top of each other and lets you specify their spacing.See 6.1.1 for Component
creation in Compose.