Input Group
Add addons, buttons, and helper content to inputs.
Installation
Usage
<InputGroup>
<InputGroupInput placeholder="Search..." />
<InputGroupAddon><Icon Data="LucideIcons.Search" /></InputGroupAddon>
</InputGroup>Composition
Use the following composition to build an InputGroup:
InputGroup
├── InputGroupInput or InputGroupTextarea
├── InputGroupAddon
├── InputGroupButton
└── InputGroupTextAlign
Use the Align parameter on InputGroupAddon to position the addon relative to the input.
InputGroupAddon should always be placed after InputGroupInput or InputGroupTextarea in the DOM. Use the Align parameter to visually position the addon.inline-start
Use align="inline-start" to position the addon at the start of the input. This is the default.
Icon positioned at the start.
inline-end
Use align="inline-end" to position the addon at the end of the input.
Icon positioned at the end.
block-start
Use align="block-start" to position the addon above the input.
Header positioned above the input.
Header positioned above the textarea.
block-end
Use align="block-end" to position the addon below the input.
Footer positioned below the input.
Footer positioned below the textarea.
Icon
Text
Button
Kbd
Dropdown
Spinner
Textarea
Custom Input
Add the data-slot="input-group-control" attribute to your custom input for automatic focus state handling.
Here's an example of a custom resizable textarea from a third-party library.
RTL
To enable RTL support in Blazix, see the RTL configuration guide.
Translated with AI for the demo, so it may have mistakes.
تذييل موضع أسفل منطقة النص.
API Reference
InputGroup
Other attributes are passed to the element it renders.
InputGroupAddon
Other attributes are passed to the element it renders.
InputGroupButton
Other attributes are passed to the element it renders.
InputGroupInput
Other attributes are passed to the element it renders.
InputGroupText
Other attributes are passed to the element it renders.
InputGroupTextarea
Other attributes are passed to the element it renders.
Changelog
2026-11-25 InputGroupButton type
InputGroupButton's Type is now a ButtonType enum, like Button's:
ButtonType.Button (the default), ButtonType.Submit, or ButtonType.Reset.
Re-add it with dnx Blazix.Cli add input-group --overwrite.