InputGroup
Group an input with prefix and suffix adornments.
Astryx Props
JSON-safe InputGroup props forwarded to Astryx.
Supported Astryx props include:
children(ReactNode; required): Input and InputGroupText children.label(string; required): Accessible label for the group.isLabelHidden(boolean): Visually hide the label.description(string): Helper text between label and input group.isDisabled(boolean): Disable the entire group.isOptional(boolean): Show "(optional)" indicator.isRequired(boolean): Mark the field as required.size('sm' or 'md' or 'lg'): Default size for inputs in the group.status(InputStatus): Status indicator applied to the group border.labelTooltip(string): Tooltip text at the end of the label.xstyle(StyleXStyles): StyleX styles for layout customization.data-testid(string): Test selector.
Props typed as React nodes, render functions, event handlers, refs, or StyleX styles are documented for Astryx parity but cannot be serialized directly from Python unless the wrapper adapts them.
See Astryx component docs: https://astryx.atmeta.com/components/InputGroup.
Functions
constructor__init__(children=None, *, label, prefix='', suffix='', disabled=False, label_hidden=None, description=None, optional=None, required=None, size=None, status=None, **props) -> NoneparamchildrenChildInput= NoneChild widget, sequence of widgets, or mapping of slot names to widgets.
paramlabelstrVisible or accessible label for the component.
paramprefixstr= ''Text rendered before grouped input children.
paramsuffixstr= ''Text rendered after grouped input children.
paramdisabledbool= FalseWhether the component should render disabled.
paramlabel_hiddenbool | None= NoneWhether to visually hide the accessible label.
paramdescriptionstr | None= NoneHelper text displayed with the group.
paramoptionalbool | None= NoneWhether to mark the group optional.
paramrequiredbool | None= NoneWhether to mark the group required.
paramsizestr | None= NoneDefault child input size.
paramstatusMapping[str, Any] | None= NoneValidation status record.
parampropsAny= {}Returns
None