Group
µGroup allows visually grouping form fields and buttons on a single line, using the role="group" attribute styled by µCSS. Grouped elements share common borders and align horizontally.
Search group
Use role="search" for a group semantically identified as a search area. The visual rendering is identical to role="group".
<div role="search">
<input type="search" placeholder="Search...">
<button>Search</button>
</div>
Role summary
| Attribute | Usage |
|---|---|
role="group" |
Generic group (buttons, inputs, selects) |
role="search" |
Search group (semantic) |
Supported elements in a group
| Element | Behavior |
|---|---|
<button> |
Action button |
<input> |
Input field (text, email, search, number, etc.) |
<select> |
Selection list |
Accessibility
role="group"informs assistive technologies that the elements are related and form a logical set.role="search"semantically identifies the area as a search feature, which helps screen reader navigation.- Elements within the group remain individually accessible via keyboard (Tab navigation).