File size: 671 Bytes
1123781
246efdb
 
 
 
 
1123781
246efdb
1123781
 
 
6a5df00
c01188e
 
 
 
 
 
 
 
 
 
 
1123781
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<script lang="ts">
  import { onMount } from "svelte";
  import type { FieldProps } from "$lib/types";
  let { value = $bindable(), params }: { value: string; params: FieldProps } =
    $props();

  onMount(() => {
    value = String(params?.default ?? "");
  });
</script>

<div class="">
  <label class="text-sm font-medium" for={params?.title}>
    {params?.title}
  </label>
  <div class="text-normal flex items-center rounded-md border border-gray-700">
    <textarea
      class="mx-1 w-full px-3 py-2 font-light outline-none dark:text-black"
      title={params?.title}
      placeholder="Add your prompt here..."
      bind:value
    ></textarea>
  </div>
</div>