mendraw/interop
Adapts typed JavaScript components to Redraw elements.
Types
A typed JsComponent value used by the interop capability.
pub type JsComponent
Values
pub fn component_el(
comp comp: JsComponent,
attrs attrs: List(attribute.Attribute),
children children: List(redraw.Element),
) -> redraw.Element
Creates a component element with attributes and children.
pub fn component_el_(
comp comp: JsComponent,
children children: List(redraw.Element),
) -> redraw.Element
Creates a component element with children.
pub fn void_component_el(
comp comp: JsComponent,
attrs attrs: List(attribute.Attribute),
) -> redraw.Element
Creates a component element without children.