meilisearch-admin/app/components/form/input.hbs
Stanislav Romanov 31bfdae368 Fix style bug
2022-09-11 10:46:17 +03:00

23 lines
548 B
Handlebars

<Form::Element
@label={{@label}}
@for={{this.id}}
@required={{@required}}
@helper={{@helper}}
...attributes
>
<div class='relative flex items-center border rounded'>
{{#if @prefixIcon}}
<@prefixIcon class='h-8 w-8 pl-2' />
{{/if}}
<input
type='text'
name={{@name}}
id={{this.id}}
class='block w-full p-2 bg-transparent focus:outline-none'
placeholder={{@placeholder}}
value={{@value}}
required={{@required}}
{{on 'input' this.onChange}}
/>
</div>
</Form::Element>