diff --git a/.changeset/strange-taxis-talk.md b/.changeset/strange-taxis-talk.md new file mode 100644 index 000000000..aca629e68 --- /dev/null +++ b/.changeset/strange-taxis-talk.md @@ -0,0 +1,5 @@ +--- +"@skip-go/widget": patch +--- + +Update web-component to allow passing props via javascript properties diff --git a/docs/widget/web-component.mdx b/docs/widget/web-component.mdx index b83f1c800..fcb3608db 100644 --- a/docs/widget/web-component.mdx +++ b/docs/widget/web-component.mdx @@ -33,20 +33,24 @@ This can be added to npm scripts in `package.json`, a `.env file`, or used when ## Usage -Props are the same as [`WidgetProps`](./configuration), but passed as attributes in kebab-case. Use strings or stringified objects for complex props. +Props are the exact same as [`WidgetProps`](./configuration) but you are required to pass them to the element via javascript/typescript. ```tsx