Home

The Input Group component wraps an input with related elements such as icons, buttons, labels, dropdowns, or other controls. It helps build richer form interfaces while maintaining consistent alignment and spacing.

Installation

npm
npx phpxui add InputGroup

Usage

use Lib\PHPXUI\{
    InputGroup,
    InputGroupAddon,
    InputGroupButton,
    InputGroupInput,
    InputGroupText,
    InputGroupTextarea
}
<InputGroup>
    <InputGroupInput placeholder="Search..." />
    <InputGroupAddon>
        <SearchIcon />
    </InputGroupAddon>
    <InputGroupAddon align="inline-end">
        <InputGroupButton>Search</InputGroupButton>
    </InputGroupAddon>
</InputGroup>

Examples

Icon

Textarea

Line 1, Column 1
script.js

Text

$
USD
https://
.com
@company.com
120 characters left

Button

https://

Spinner

Saving...
Please wait...

Label

Button Group

.com

Custom Group