mirror of
https://github.com/IoTManagerProject/IoTManagerWeb.git
synced 2026-03-26 23:12:34 +03:00
start add input component as per iot manager app
This commit is contained in:
20
src/components/Input.svelte
Normal file
20
src/components/Input.svelte
Normal file
@@ -0,0 +1,20 @@
|
||||
<script context="module">
|
||||
import { WSpush } from "./App.svelte";
|
||||
</script>
|
||||
|
||||
<script>
|
||||
export let title;
|
||||
export let value;
|
||||
</script>
|
||||
|
||||
<div class="container">
|
||||
<div class="block-psn-center-when-md">
|
||||
<div class="md:w-1/3">
|
||||
<!-- svelte-ignore a11y-label-has-associated-control -->
|
||||
<label class="descr-gray">{title}</label>
|
||||
</div>
|
||||
<div class="md:w-2/3">
|
||||
<input bind:value on:change={WSpush(value)} class="input-indigo" type="text" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user