InlineField API

API reference docs for theInlineFieldcomponent. For examples and details on the usage of this component, visit the component demo page.

Props

PropTypeDescriptionDefault
childrenReactNodeThe <TextInput />, <Textarea /> component to be displayed inside the inline field._
errorMessage?ReactNodeMessage to show when the field is invalid. Will be announced to screen readers and displayed with error styling._
id?stringSets a unique identifier for the component. Useful for form accessibility and testing._
isDisabled?booleanWhen true, the field is disabled, preventing user interaction and applying disabled styling.false
isRequired?booleanWhether user input is required on the field before form submission. Adds visual indication and accessibility attributes.false
labelReactNodeLabel for the field that describes its purpose. Required for accessibility._
labelVisibility?'visible' | 'hidden'A label must always be provided for assistive technology, but you may hide it from sighted users when the intent can be inferred from context.'visible'
secondaryLabel?ReactNodeAdditional context displayed alongside the primary label, typically used to indicate that the field is optional._
counter?objectCounter object containing maxValue and value properties. "maxValue": maximum value the counter can reach. "value": current value of the counter. Used to display character count information._