Beta Preview

Group

A group represents a set of related UI controls, and supports interactive states for styling.

Serial number
 
isDisabled 
isInvalid 
import {InputGroup} from './InputGroup';
import {Input} from 'react-aria-components';

<InputGroup label="Serial number">
  <Input
    size={3}
    maxLength={3}
    aria-label="First 3 digits"
    placeholder="000" />
  –
  <Input
    size={2}
    maxLength={2}
    aria-label="Middle 2 digits"
    placeholder="00" />
  –
  <Input
    size={4}
    maxLength={4}
    aria-label="Last 4 digits"
    placeholder="0000" />
</InputGroup>

API

NameType
isDisabledboolean
Whether the group is disabled.
isReadOnlyboolean
Whether the group is read only.
children<>
The children of the component. A function may be provided to alter the children based on component state.

Default className: react-aria-Group

Render PropCSS Selector
isHoveredCSS Selector: [data-hovered]
Whether the group is currently hovered with a mouse.
isFocusWithinCSS Selector: [data-focus-within]
Whether an element within the group is focused, either via a mouse or keyboard.
isFocusVisibleCSS Selector: [data-focus-visible]
Whether an element within the group is keyboard focused.
isDisabledCSS Selector: [data-disabled]
Whether the group is disabled.
isInvalidCSS Selector: [data-invalid]
Whether the group is invalid.