Feedback
Notice
Status, warning and recovery information in place.
import { Notice } from 'faifo-design'Notice states something the reader needs to know about the region it sits in, with an optional
action to recover.
#When to use
- Place it where the condition applies: above the form it blocks, inside the section it describes.
- Use a tone for the kind of message and let the text say what to do next.
- A passing confirmation that needs no action is a
Toast.
#Examples
Each example is a specimen of the package catalogue, rendered on the server exactly as shown in its code.
#Notice
Status, warning and recovery information with an optional action.
Show codeHide code
import { Button, Notice, Stack } from 'faifo-design'
export const Example = () => (
<Stack
gap="compact"
items={[
<Notice title="Sync complete" message="42 records are ready for review." tone="positive" />,
<Notice title="Release drift" message="Two tenants are one release behind." tone="warning" />,
<Notice
title="Connection failed"
message="The provider rejected the stored credential. Rotate it before retrying."
tone="danger"
actions={<Button label="Rotate" size="compact" />}
/>,
]}
/>
)#API
Generated from the package source. A property without a description has none in the source yet.
#NoticeComponent
| Property | Description | Type | Default |
|---|---|---|---|
titlerequired | – | string | – |
messagerequired | – | string | – |
tone | – | NoticeTone | 'info' |
actions | – | JSXChild | – |
announcement | – | 'off' | 'polite' | 'assertive' | – |
#Types
#NoticeTone
type NoticeTone = 'info' | 'positive' | 'warning' | 'danger'