Base
Pure CSS
Input
The text field with label, hint and error wiring; icons, prefixes/suffixes, live Livewire validation and Persian digits.
Real scenarios
The component as it is used in a product — not a specimen grid.
Store profile, with help where it counts
Label, hint and icon on the display name; a glued prefix/suffix on the address; the billing email carries a hard error — nothing clears until it is fixed.
Visible to every teammate.
https://
.nabu.shop
Enter a valid email, or billing stops.
Address preview:
https://your-store.nabu.shop
A live member search
Debounced by 300ms — one request per pause, not per keystroke. Try Persian or Latin names.
- مریم صادقی Product designer
- سامان دهقان Backend engineer
- Nguyen Linh Support lead
- هانیه کاظمی Data analyst
- Marcus Reid Growth marketer
Important props
| Prop | Type | Default | What it does |
|---|---|---|---|
| label | string | null | The field label; any of label/hint/error wraps the field in the nx-field frame. |
| hint | string | null | Helper text under the label — wired to the field via aria-describedby. |
| error | string | null | Error message; when omitted it is read from $errors by the field name (or wire:model). |
| icon / iconEnd | string | null | An icon at the start or end of the field, inside the frame. |
| prefix / suffix | string | null | Glued text (like https:// or a currency) instead of an icon. |
| size | string | md | Field size: sm · md · lg. |
| required | bool | false | Adds the required star to the label and required on the input itself. |
Snippet
<x-nx::input label="نام نمایشی" hint="این نام برای همتیمیها دیده میشود"
icon="user" wire:model.blur="state.name" required />
<x-nx::input label="آدرس فروشگاه" prefix="https://" suffix=".nabu.shop"
wire:model.live="state.subdomain" />
<x-nx::input label="ایمیل" type="email" icon="mail" error="این ایمیل معتبر نیست"
wire:model.blur="state.email" />