Error notice
RequiredAssertive error container and title.
Actions & feedback
An error notice with optional expandable, copyable diagnostics for support workflows.
ErrorReportErrorReportPropsConfigure the production component, inspect it at responsive widths, copy synchronized JSX, and share the exact state from one workspace.
Something went wrong
Unable to load projects.
This JSX stays synchronized with the controls and uses only public package APIs.
import { ErrorReport } from '@ai-created/ui';
export function Example() {
return (
<ErrorReport
title={"Something went wrong"}
message={"Unable to load projects."}
details={"Request timed out."}
/>
);
}
import { ErrorReport } from '@ai-created/ui';Client boundary
'use client' to the file that owns this interactive state.Replace the version placeholder with the release tag your product has reviewed.
npm install --install-links "git+https://github.com/TheMarco/ai-created-ui.git#vX.Y.Z"@import '@ai-created/ui/styles/tokens.css';
@tailwind base;
@tailwind components;
@tailwind utilities;module.exports = {
presets: [require('@ai-created/ui/tailwind-preset')],
content: [
'./src/**/*.{js,ts,jsx,tsx,mdx}',
'./node_modules/@ai-created/ui/src/**/*.{js,ts,jsx,tsx}',
],
};Named regions define what belongs to the component, what remains optional, and where semantic responsibility lives.
Assertive error container and title.
User-facing failure summary.
Optional Debug info toggle.
buttonExpanded preformatted details, timestamp, and URL.
preCopies the assembled diagnostics.
buttonThe Figma-equivalent asset model, auto-layout, resizing, properties, slots, content bounds, localization, and governance contract.
Asset kind
component
Design library name
Components/Feedback/Error report
Maturity
stable
Last reviewed
2026-08-29
Canvas applicability
Publish collapsed, expanded, and copied interactive states as component variants.
| Property | Type | Default | Code mapping | Options or notes |
|---|---|---|---|---|
| Title | text | Something went wrong | title | No additional constraint |
| MessageRequired | text | None | message | No additional constraint |
| Debug details | text | None | details | No additional constraint |
| Expanded preview | boolean | false | Internal disclosure state; no public prop | No additional constraint |
| Copied preview | boolean | false | Transient internal state; no public prop | No additional constraint |
Assertive error container.
<Notice variant="error">Controls diagnostic visibility.
Internal native buttonCopies sanitized diagnostics.
Internal ButtonOverflow: Allow localization wrap.
The failure category should remain concise.
Overflow: Move troubleshooting steps below the component.
Users need a clear outcome and next step.
Overflow: Provide a support attachment flow for larger logs.
Large or sensitive logs should not be exposed inline.
Translatable: Title, Message, Disclosure label, Copy state
Fill the failed content region.
No internal breakpoint
Accountable owner
Design systems reliability pattern owner
Canonical source: src/components/ErrorReport.tsx
These measurements and semantic tokens define the supported visual contract. Local overrides should preserve the same hierarchy and interaction cues.
Notice padding
24px
Internal vertical gap
8px
Diagnostic padding
12px
Disclosure icon
12 × 12px
--color-error / --color-error-surface / --color-error-borderError Notice treatment.
--color-surface2Diagnostic code block.
--color-text2 / --color-text3Message and low-emphasis controls.
A component is not complete until its passive, interactive, disabled, and exceptional states remain understandable in both themes.
Semantics, accessible naming, keyboard behavior, focus and announcements are implementation requirements, not optional documentation.
Use the public package API and preserve the controlled-state, native-attribute, and ref contracts described below.
import { ErrorReport } from '@ai-created/ui';Client Component required
<ErrorReport message="Unable to load projects." details={error.message} />These props and helpers are compatibility contracts. Changes require migration guidance and release notes.
| Prop | Type | Default | Contract |
|---|---|---|---|
| message | string | required | User-facing error message. |
| title | string | Something went wrong | Error heading. |
| details | string | null | undefined | Optional technical details. |
| timestamp | string | current ISO time | Optional diagnostic timestamp. |
These rules keep the component recognizable across products without preventing deliberate composition.
The component should be verified as rendered UI, an interaction model, an accessibility surface, and a theme-aware visual artifact.