Download resources/views/default/components/form/text.blade.php from pnacorp/magicai: direct link, hf CLI and curl.
- Browser
- Download file 1.35 kB
-
https://huggingface.co/pnacorp/magicai/resolve/main/resources/views/default/components/form/text.blade.php
- Command line
-
hf download hf://pnacorp/magicai/resources/views/default/components/form/text.blade.php
-
curl -L -o text.blade.php https://huggingface.co/pnacorp/magicai/resolve/main/resources/views/default/components/form/text.blade.php
1.35 kB
| @aware(['icon', 'action', 'size', 'error', 'stepper']) | |
| @props([ | |
| 'icon' => null, | |
| 'action' => null, | |
| 'stepper' => null, | |
| 'error' => null, | |
| 'sizes' => [ | |
| 'none' => 'lqd-input-size-none rounded-lg', | |
| 'sm' => 'lqd-input-sm h-9 rounded-md', | |
| 'md' => 'lqd-input-md h-10 rounded-lg', | |
| 'lg' => 'lqd-input-lg h-11 rounded-xl', | |
| 'xl' => 'lqd-input-xl h-14 rounded-2xl px-6', | |
| '2xl' => 'lqd-input-2xl h-16 rounded-full px-8', | |
| ], | |
| 'size' => 'lg', | |
| 'type' => 'text', | |
| ]) | |
| <x-form.wrapper> | |
| <input {{ $attributes->class([ | |
| 'form-control', | |
| 'form-input-stepper' => $stepper | |
| ]) }} | |
| :id="$id('text-input')" | |
| type="{{ $type }}" | |
| @if($attributes->has('wire:model')) | |
| x-data="{ value: @entangle($attributes->wire('model')) }" | |
| @if ($stepper) | |
| x-model="value" | |
| x-on:input="value = (value).toString().includes('.') ? parseFloat(value).toFixed(2) : value" | |
| @else | |
| x-model="value" | |
| @endif | |
| @endif | |
| @if($error) | |
| aria-invalid="true" autofocus x-bind:aria-describedby="@if ($id ?? '') {{ $id }}-error @else $id('text-input') + '-error' @endif" | |
| @endif | |
| /> | |
| </x-form.wrapper> |