Crate weavetui_derive

Crate weavetui_derive 

Source
Expand description

Procedural macro for the weavetui TUI framework.

This crate provides the #[component] attribute macro, which automatically implements the weavetui_core::Component and weavetui_core::ComponentAccessor traits for structs. It simplifies the creation of UI components by handling boilerplate code related to component lifecycle, child management, and action dispatching.

Attribute Macrosยง

component
Implements the weavetui_core::Component and weavetui_core::ComponentAccessor traits for a struct, turning it into a weavetui component.