T126warning

Unknown prop

A prop is passed to a component that does not define it.

The component's Props struct has no field for the prop, so the value is ignored. When a defined prop is close, the message suggests it.

Use the prop name the component defines, or add the field to its Props struct.

$ piko explain T126

Build output ends each diagnostic with a link to this page, and editors using the Piko language server link the code under the squiggle. Look for CodeUnknownProp in Piko's source to see where it is reported.