feat: input component
This commit is contained in:
parent
7a6fde5581
commit
ca992019e5
15
resources/views/components/forms/text-input.blade.php
Normal file
15
resources/views/components/forms/text-input.blade.php
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
@props([
|
||||||
|
'name',
|
||||||
|
'description',
|
||||||
|
])
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<div>
|
||||||
|
@error($name) <span class="error">{{ $message }}</span> @enderror
|
||||||
|
</div>
|
||||||
|
<flux:field type="text" name="{{ $name }}" {{ $attributes }}>
|
||||||
|
<flux:label>{{ $name }}</flux:label>
|
||||||
|
<flux:description>{{ $description }}</flux:description>
|
||||||
|
<flux:input />
|
||||||
|
</flux:field>
|
||||||
|
</div>
|
||||||
Loading…
Reference in New Issue
Block a user