Skip to content

Commit 5f94432

Browse files
committed
tweak some more wording
1 parent 401b1d4 commit 5f94432

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

documentation/docs/05-misc/04-custom-elements.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ The inner Svelte component is destroyed in the next tick after the `disconnected
6363

6464
When constructing a custom element, you can tailor several aspects by defining `customElement` as an object within `<svelte:options>` since Svelte 4. This object may contain the following properties:
6565

66-
- `tag: string`: an optional `tag` property for the custom element's name. If set, a custom element with this tag name will be defined with the document's customElements registry upon importing this component.
66+
- `tag: string`: an optional `tag` property for the custom element's name. If set, a custom element with this tag name will be defined with the document's `customElements` registry upon importing this component.
6767
- `shadow`: an optional property that can be set to `"none"` to forgo shadow root creation. Note that styles are then no longer encapsulated, and you can't use slots
6868
- `props`: an optional property to modify certain details and behaviors of your component's properties. It offers the following settings:
6969
- `attribute: string`: To update a custom element's prop, you have two alternatives: either set the property on the custom element's reference as illustrated above or use an HTML attribute. For the latter, the default attribute name is the lowercase property name. Modify this by assigning `attribute: "<desired name>"`.

documentation/tutorial/16-special-elements/09-svelte-options/text.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ The options that can be set here are:
2525
- `accessors={true}` — adds getters and setters for the component's props
2626
- `accessors={false}` — the default
2727
- `namespace="..."` — the namespace where this component will be used, most commonly `"svg"`
28-
- `customElement="..."` — the name or [fine grained settings](/docs/custom-elements-api#component-options) to use when compiling this component as a custom element.
28+
- `customElement={...}` — the [options](/docs/custom-elements-api#component-options) to use when compiling this component as a custom element. If a string is passed, it is used as the `tag` option
2929

3030
Consult the [API reference](/docs) for more information on these options.

0 commit comments

Comments
 (0)