When to use it
Show it after a failed submit and focus it so people hear the problem first.
List form errors and move focus to the field that needs attention.
Native example
Show it after a failed submit and focus it so people hear the problem first.

Captured exampleExpo web renderer
Open interactive previewimport { LumenErrorSummary, type LumenErrorSummaryProps, LumenTextField } from '@santi020k/lumen-react-native'
import { type ComponentRef, useRef } from 'react'
import { type TextInput, View } from 'react-native'
export function SignUpErrors({ errors }: Pick<LumenErrorSummaryProps, 'errors'>) {
const emailRef = useRef<ComponentRef<typeof TextInput>>(null)
const passwordRef = useRef<ComponentRef<typeof TextInput>>(null)
return (
<View style={{ gap: 16 }}>
<LumenErrorSummary
errors={errors}
onSelectError={error => {
const field = error.name === 'email' ? emailRef.current : passwordRef.current
field?.focus()
}}
/>
<LumenTextField ref={emailRef} accessibilityLabel="Email" autoComplete="email" />
<LumenTextField ref={passwordRef} accessibilityLabel="Password" secureTextEntry />
</View>
)
}Reference
The primary shared and platform-specific options exposed by LumenErrorSummary.
| API | Values or type | Default | Description |
|---|---|---|---|
| errors / heading / onSelectError | messages / title / focus callback | required / There is a problem / required | Show it after a failed submit and focus it so people hear the problem first. |
Native behavior
Show it after a failed submit and focus it so people hear the problem first.
A heading names the summary, and each entry focuses its field.
Shared component