You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/documentation/docs/99-legacy/05-legacy-$$restProps.md

451 B

title
$$restProps

$$restProps contains only the props which are not declared with export. It can be used to pass down other unknown attributes to an element in a component. It shares the same performance characteristics compared to specific property access as $$props.

<input {...$$restProps} />

[!NOTE] In Svelte 5+, this concept is unnecessary as you can use let { foo, ...rest } = $props() instead