Parameters
required
Package identity, SemVer version, widgets, and optional runtime stylesheets.
Returns
SourceWidgetPackage<Scope, StableId>
A canonical source package descriptor. Build and dev replace runtime artifact URLs.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
defineWidgetPackage(options: DefineWidgetPackageOptions<Scope, StableId>): SourceWidgetPackage<Scope, StableId>
const widgetPackage = defineWidgetPackage({
scope: "acme",
packageStableId: "company-public-id",
version: "1.0.0",
widgets: [greeting],
});
SourceWidgetPackage<Scope, StableId>
A canonical source package descriptor. Build and dev replace runtime artifact URLs.