Component
Last updated
Component instances 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. In composable contexts, use rememberTextComponent.
ShapeComponent draws Shape instances, for which you can define a color, a stroke, and more. In composable contexts, use rememberShapeComponent.
LineComponent draws horizontal and vertical lines. In composable contexts, use rememberLineComponent.
LayeredComponent draws two Component instances on top of each other and lets you specify their spacing.
Last updated