View laravel-hotwire on GitHub
1M
v0.91.0
Search 71 components and 72 controllers by name, category or description.
Input Group
Composable control shell with addons, actions, shortcuts and helper content
Search
Add an icon to a search field while keeping its built-in clear button and Escape-to-clear behavior.
<hw:input-group>
<hw:input name="search" type="search" aria-label="Search projects" placeholder="Search..." />
<hw:input-group.addon align="inline-start">
<x-lucide-search class="size-4" />
</hw:input-group.addon>
</hw:input-group>
Prefix and action
Combine text addons and buttons around the same control.
https://
<hw:input-group>
<hw:input name="url" placeholder="example.com" />
<hw:input-group.addon align="inline-start">
https://
</hw:input-group.addon>
<hw:input-group.addon align="inline-end">
<hw:button type="submit" variant="ghost" size="sm">Go</hw:button>
</hw:input-group.addon>
</hw:input-group>
Textarea footer
Type to update the live character counter inside the control's frame. A block addon adds helper content below it.
0/280
Share a brief update with your team.
<hw:input-group>
<hw:textarea name="message" aria-label="Short update" :counter="280" placeholder="Write a short update..." />
<hw:input-group.addon align="block-end">
Share a brief update with your team.
</hw:input-group.addon>
</hw:input-group>
Custom control
Use data-slot when composing a plain input inside the group.
USD
<hw:input-group>
<input data-slot="input-group-control" name="amount" inputmode="decimal" placeholder="0.00" />
<hw:input-group.addon align="inline-end">
USD
</hw:input-group.addon>
</hw:input-group>