#load "../lib/app.uce" RENDER(Request& context) { starter_boot(context); context.call["starter"]["page_title"] = "Components"; starter_register_css("views/marketing.css", context); <>

Component System

Component Declaration

marketing_blocks.uce
COMPONENT:HERO_SECTION(Request& context)
{
    String title = first(context.props["title"].to_string(), "Welcome");
    <>
        <div class="hero-section">...</div>
    </>
}

Example Components

marketing_blocks:HERO_SECTION

Landing page hero with CTA buttons

marketing_blocks:FEATURES_GRID

Feature showcase grid

widgets:DATA_TABLE

ag-Grid table wrapper

widgets:SORTABLE_TABLE

Lightweight sortable HTML table

primitives:APP_FRAME

Workspace shell wrapper

gauges:ARCGAUGE

SVG KPI gauge component

Usage Examples

views/index.uce
DTree props;
props["title"] = "Stunning Apps";
<><?: component("example/marketing_blocks:HERO_SECTION", props, context) ?></>
}