feat: track images with git lfs
This commit is contained in:
21
packages/input-elements/src/lib/Input.svelte
Normal file
21
packages/input-elements/src/lib/Input.svelte
Normal file
@@ -0,0 +1,21 @@
|
||||
<script lang="ts">
|
||||
import Checkbox from "$lib/elements/Checkbox.svelte";
|
||||
import Float from "$lib/elements/Float.svelte";
|
||||
import Integer from "$lib/elements/Integer.svelte";
|
||||
import Select from "$lib/elements/Select.svelte";
|
||||
|
||||
import type { NodeInput } from "@nodes/types";
|
||||
|
||||
export let input: NodeInput;
|
||||
export let value: any;
|
||||
</script>
|
||||
|
||||
{#if input.type === "float"}
|
||||
<Float bind:value />
|
||||
{:else if input.type === "integer"}
|
||||
<Integer bind:value />
|
||||
{:else if input.type === "boolean"}
|
||||
<Checkbox bind:value />
|
||||
{:else if input.type === "select"}
|
||||
<Select labels={input.labels} bind:value />
|
||||
{/if}
|
||||
Reference in New Issue
Block a user