mirror of https://github.com/sveltejs/svelte
parent
77c393e01c
commit
3613508c2c
@ -1,9 +0,0 @@
|
||||
<script>
|
||||
import Input from './Input.svelte';
|
||||
|
||||
export let value = '';
|
||||
|
||||
$: ({ value, ...rest } = $$props);
|
||||
</script>
|
||||
|
||||
<Input {value} name="email" aria-label="Email" />
|
@ -1,7 +0,0 @@
|
||||
<script>
|
||||
export let value = '';
|
||||
|
||||
$: ({ value, ...rest } = $$props);
|
||||
</script>
|
||||
|
||||
<input bind:value {...rest} />
|
@ -1,9 +0,0 @@
|
||||
<script>
|
||||
import Input from './Input.svelte';
|
||||
|
||||
export let value = '';
|
||||
|
||||
$: ({ value, ...rest } = $$props);
|
||||
</script>
|
||||
|
||||
<Input {value} name="email" aria-label="Email" />
|
@ -1,5 +0,0 @@
|
||||
<script>
|
||||
export let value = '';
|
||||
</script>
|
||||
|
||||
<input bind:value {...$$restProps} />
|
@ -1,9 +0,0 @@
|
||||
---
|
||||
title: $$restProps
|
||||
---
|
||||
|
||||
If you want to pass down props that are not defined with `export`, you can use `$$restProps`:
|
||||
|
||||
```html
|
||||
<input {...$$restProps}/>
|
||||
```
|
Loading…
Reference in new issue