Surface
RequiredSemantic-tone container and live region.
divActions & feedback
An inline live-region message for informational, positive, cautionary, or error feedback.
NoticeNoticePropsNoticeVariantConfigure the production component, inspect it at responsive widths, copy synchronized JSX, and share the exact state from one workspace.
Review required
This JSX stays synchronized with the controls and uses only public package APIs.
import { Notice } from '@ai-created/ui';
export function Example() {
return (
<Notice title={"Review required"}>
Check the supporting details before continuing.
</Notice>
);
}
import { Notice } from '@ai-created/ui';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.
Semantic-tone container and live region.
divDecorative tone reinforcement.
Optional concise message heading.
Supporting explanation or recovery guidance.
The Figma-equivalent asset model, auto-layout, resizing, properties, slots, content bounds, localization, and governance contract.
Asset kind
component
Design library name
Components/Feedback/Notice
Maturity
stable
Last reviewed
2026-08-29
Canvas applicability
Publish tone variants with title, message, icon visibility, and alignment properties.
| Property | Type | Default | Code mapping | Options or notes |
|---|---|---|---|---|
| Tone | variant | default | variant | default, info, success, warning, error |
| Title | text | None | title | No additional constraint |
| Message | slot | None | children | No additional constraint |
| Centered | boolean | false | centered | No additional constraint |
| Hide icon | boolean | false | hideIcon | No additional constraint |
| Status icon | instance-swap | None | Derived from variant; custom replacement is design-only and needs implementation review | No additional constraint |
Semantic tone container.
<Surface> inside NoticeDecorative icon derived from tone.
Internal variant iconSupporting content and recovery guidance.
childrenOverflow: Wrap only when localization requires it.
The outcome should be understandable at a glance.
Overflow: Move complex guidance into adjacent content.
Live-region announcements must remain concise.
Translatable: Title, Body
Fill the containing content column.
No internal breakpoint
Accountable owner
Design systems feedback owner
Canonical source: src/components/Notice.tsx
These measurements and semantic tokens define the supported visual contract. Local overrides should preserve the same hierarchy and interaction cues.
Padding
24px
Content gap
16px
Icon
16 × 16px
Radius
6px
Title/body gap
8px
--color-*-surfaceTone background.
--color-*-borderTone border.
--color-info / success / warning / errorTitle and icon.
--color-text2Body copy.
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.
No component-specific keyboard behavior. Native document behavior remains unchanged.
Use the public package API and preserve the controlled-state, native-attribute, and ref contracts described below.
import { Notice } from '@ai-created/ui';Server Component compatible
<Notice variant="warning" title="Review required">Check the highlighted fields.</Notice>These props and helpers are compatibility contracts. Changes require migration guidance and release notes.
| Prop | Type | Default | Contract |
|---|---|---|---|
| variant | NoticeVariant | default | default, info, success, warning, or error. |
| title | string | undefined | Optional notice heading. |
| children | ReactNode | undefined | Message content. |
| role | string | status or alert | Override the semantic role. |
| aria-live | polite | assertive | off | polite or assertive | Override announcement behavior. |
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.