#load "../lib/app.uce" COMPONENT(Request& context) { DValue asset_props; asset_props["css"]["0"] = "views/marketing.css"; print(component("../components/theme/assets", asset_props, context)); context.call["app"]["page_title"] = "Components"; <>

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
DValue props;
props["title"] = "Stunning Apps";
<><?: component("example/marketing_blocks:HERO_SECTION", props, context) ?></>
}