mirror of https://github.com/sveltejs/svelte
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.
20 lines
276 B
20 lines
276 B
4 years ago
|
<script>
|
||
|
import { omit } from './utils.js';
|
||
|
|
||
|
export let value;
|
||
|
|
||
|
function onInput(e) {
|
||
|
value = e.target.value;
|
||
|
}
|
||
|
|
||
|
$: props = omit($$props, 'value', 'minlength');
|
||
|
</script>
|
||
|
|
||
|
<input
|
||
|
type="text"
|
||
|
minlength="10"
|
||
|
value={value}
|
||
|
{...props}
|
||
|
on:input={onInput}
|
||
|
/>
|