Skip to content

E0106: A component's attributes don't fit ​

A component tag passes attributes its function or struct doesn't take: an unknown attribute, one of the wrong type, a missing required one, children to a component without a Children field, or a type that isn't a component at all (a component is a function returning ui.Node, or a stateful type implementing ui.Stateful).

Wrong ​

vuka
func Badge(label string, tone string) ui.Node { … }

return <Badge lable="New" tone={3} />
vuka
func Badge(label string, tone string) ui.Node { … }

return <Badge label="New" tone="info" />

Released under the MIT License. Vuka builds on Go and its tools, which are made by the Go Authors. Vuka is not affiliated with Google or the Go project. Go is a trademark of Google LLC.