Current section

Files

Jump to
m3e src m3e step_panel.gleam
Raw

src/m3e/step_panel.gleam

//// StepPanel is a panel presented for a step in a wizard-like workflow.
////
//// This file was generated by m3e/generator
////
//// DO NOT EDIT
////
import lustre/attribute.{type Attribute}
import lustre/element.{type Element}
// --- Types ---
/// StepPanel is a View Model for this component
///
pub opaque type StepPanel {
StepPanel
}
// --- Defaults ---
/// Slots are used in child elements to insert content into this component
///
pub type Slot {
Actions
// Renders the actions bar of the panel.
}
// --- Constructors ---
/// new creates a new StepPanel with the default configuration.
///
pub fn new() -> StepPanel {
StepPanel
}
// --- Setters ---
// --- Renderers ---
/// render creates a Lustre Element for a StepPanel
///
pub fn render(
_: StepPanel,
attributes: List(Attribute(msg)),
children: List(Element(msg)),
) -> Element(msg) {
element.element("m3e-step-panel", attributes, children)
}
/// slot returns a Lustre Attribute(msg) for the given slot name
///
pub fn slot(s: Slot) -> Attribute(msg) {
case s {
Actions -> attribute.attribute("slot", "actions-")
}
}