2021-05-22 12:32:32 +03:00
|
|
|
<script>
|
|
|
|
|
export let label;
|
2021-06-26 21:32:42 +03:00
|
|
|
export let placeholder = "Write your answer...";
|
2021-05-22 12:32:32 +03:00
|
|
|
export let value;
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<label class="block">
|
2021-06-26 21:32:42 +03:00
|
|
|
{#if label}
|
|
|
|
|
<span class="text-gray-700">{label}</span>
|
|
|
|
|
{/if}
|
2021-05-22 12:32:32 +03:00
|
|
|
<textarea
|
|
|
|
|
class="form-textarea mt-1 block w-full h-24"
|
|
|
|
|
rows="3"
|
|
|
|
|
{placeholder}
|
|
|
|
|
bind:value
|
|
|
|
|
/>
|
2021-06-26 21:32:42 +03:00
|
|
|
|
|
|
|
|
<slot name="iconbutton" />
|
2021-05-22 12:32:32 +03:00
|
|
|
</label>
|