Component
Components are the basic graphical building blocks of Vico. There are several built-in implementations, which cover most use cases:
TextComponentdraws text. It supports font customization, line breaks, rotation, backgrounds, and more.ShapeComponentdrawsShapes, for which you can define a color, a stroke, and more.LineComponent, which is a type ofShapeComponent, draws horizontal and vertical lines.LayeredComponentdraws twoComponents on top of each other and lets you specify their spacing.
Learn about Component creation in Compose.
Last updated