Skip to main content

Crate kobalt_core

Crate kobalt_core 

Source
Expand description

§Kobalt Core

Core functionality for the Kobalt UI framework.

This crate provides:

  • Widget tree and composition
  • Layout system (Column, Row, Flexbox)
  • State management (LiveData, ValueNotifier, ChangeNotifier)
  • MVVM infrastructure
  • Common types (Size, Rect, Color)

§Architecture

Kobalt Core is platform-agnostic and does not depend on WGPU or any specific runtime. It can be tested with cargo test and is portable to any platform.

Re-exports§

pub use layout::MainAxisAlignment;
pub use layout::CrossAxisAlignment;
pub use layout::EdgeInsets;

Modules§

layout
Layout primitives and alignment enums
state
State management system
types
Common types used throughout Kobalt
widget
Widget tree and composition