meilisearch-admin/app/components/input-textarea.hbs
2022-09-02 10:18:37 +03:00

26 lines
630 B
Handlebars

<div class='mb-4'>
{{#if @label}}
<label for={{this.id}} class='block font-medium mb-1 text-dark'>
{{@label}}
</label>
{{/if}}
<div class='relative flex items-center border rounded-md'>
{{#if @prefixIcon}}
<@prefixIcon class='h-8 w-8 pl-2' />
{{/if}}
<Textarea
type='text'
name={{@name}}
id={{this.id}}
class='block w-full p-2 bg-transparent focus:outline-none'
placeholder={{@placeholder}}
@value={{@value}}
{{on 'change' this.onChange}}
/>
</div>
{{#if @helper}}
<div class='mt-1 text-sm'>
{{@helper}}
</div>
{{/if}}
</div>