C03

Error

Components

C03 — A part outside the component it belongs to

Select.Option, Table.Row, Card.Header — a part is placed inside its owner. Outside it, it draws a stray element with nothing around it.

What the compiler said

error[C03]: `Select.Option` is a part of `Select`, and it is not inside one --> src/App.wf:3:5 | 3 | Select.Option("Pro", value: "pro") | ^^^^^^^^^^^^^ = help: Place it in a `Select { … }` = docs: https://webfluent.monzeromer.dev/errors/C03

The fix

Broken

wf

page P(path: "/", title: "T", description: "D") { Heading("Plans").h1 Select.Option("Pro", value: "pro") }

Fixed

wf

page P(path: "/", title: "T", description: "D") { state plan = "pro" Heading("Plans").h1 Select(bind: plan, label: "Plan") { Select.Option("Pro", value: "pro") } }

Place the part inside its owner: Select(bind: plan) { Select.Option(…) }.

Each example is a whole program: it is all of src/App.wf in a project with no other .wf file (trying an example).

lints cannot lower it: it would ship a broken page.