Askr documentation
Generated API snapshot

@askrjs/askr/components

Exports from the declarations published in @askrjs/askr. Signatures reflect the published artifact.

Exports

This entrypoint publishes 3 exports. Use the anchored symbol rows for direct links. Type-only exports are labeled separately from runtime values.

ErrorBoundarytype

ErrorBoundary: (props: ErrorBoundaryProps) => JSXElement

Creates a boundary for descendant mount and post-mount render/commit errors, including content materialized through a portal host.

ErrorBoundaryFallbackRendertype

ErrorBoundaryFallbackRender: (error: unknown, reset: () => void) => ErrorBoundaryFallbackValue

Renders a fallback for the caught error; call `reset` to retry the children.

ErrorBoundaryPropstype

ErrorBoundaryProps: any

Props for {@link ErrorBoundary}.

children
Optional children slot
fallback
Static fallback content, or a render function receiving the error and a reset callback.
key
Optional key for keyed lists (string | number | symbol for internal frames)
onError
Called with the caught error when the boundary trips.
resetKey
Changing this value resets the boundary, re-rendering the children.