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. In composable contexts, userememberTextComponenent.ShapeComponentdrawsShapes, for which you can define a color, a stroke, and more. In composable contexts, userememberShapeComponent.LineComponentdraws horizontal and vertical lines. In composable contexts, userememberLineComponent.LayeredComponentdraws twoComponents on top of each other and lets you specify their spacing.
Last updated