Expand description
The Zi prelude.
Re-exports
Structs
A lightweight abstract terminal. All components in Zi ultimately draw to a
Canvas
, typically via their child components or directly in the case of
lower level components.
An RGB encoded colour, 1-byte per channel.
A context for sending messages to a component or the runtime.
A flex container with a specified direction and items.
Represents a flex item, a layout tree nested inside a container.
Represents a layout tree which is the main building block of a UI in Zi.
Specifies how content should be styled. This represents a subset of the ANSI available styles which is widely supported by terminal emulators.
Enums
Enum to control the size of an item inside a container.
Enum to control how items are placed in a container. It defines the main axis and the direction (normal or reversed).
Keyboard input. It aims to match what a terminal supports.
Type to indicate whether a component should be rendered again.
Traits
Components are the building blocks of the UI in Zi.
Type Definitions
Type alias for background colours.
Type alias for foreground colours.