Parameters
required
Component, builder metadata, defaults, property schema, and typed capability uses.
Returns
SourceWidget<Name, Props>
The normalized widget used by defineWidgetPackage.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
defineWidget(options: DefineWidgetOptions<Name, Props>): SourceWidget<Name, Props>
const greeting = defineWidget({
name: "greeting",
displayName: "Greeting",
component: Greeting,
defaultProps: { message: "Hello" },
uses: [getUserAccount],
});
SourceWidget<Name, Props>
The normalized widget used by defineWidgetPackage.