InlineNotice
Compact contextual feedback seam for inline guidance inside forms and panels.
All components · Theme builder · Implementation source
Live preview
Open live inline-notice preview
Install
netscript ui:add inline-noticeUsage and examples
The preview runs this JSX with the installed components. Import any composed primitives from your UI directory.
import { useState } from 'preact/hooks';
import { InlineNotice } from '@app/components/ui/inline-notice.tsx';
export function Example() {
const [value, setValue] = useState('standard');
const [open, setOpen] = useState(false);
const [notice, report] = useState('');
return (<><div><InlineNotice title="Saved">Changes apply to this order.</InlineNotice></div><p role="status">{notice}</p></>);
}Props
Generated from native deno doc --json --private over the shipped implementation. Compound component props retain their owning interface; native attributes pass through where declared.
| Owner | Prop | Type | Optional | Description |
|---|---|---|---|---|
InlineNoticeProps | children | Renderable | Yes | |
InlineNoticeProps | class | string | Yes | |
InlineNoticeProps | icon | Renderable | Yes | |
InlineNoticeProps | title | Renderable | Yes | |
InlineNoticeProps | variant | InlineNoticeVariant | Yes |
type InlineNoticeVariant = "info" | "success" | "warning" | "destructive"Keyboard
Presentation component; no component-specific keyboard interactions.
Tokens
Semantic contract roles: radius/input, space/stack/gap, surface/surface.
CSS custom properties referenced directly: --ns-control-padding-x, --ns-radius-md, --ns-space-3, --ns-space-4, --ns-stack-gap, --ns-surface.
Contract and compatibility
Accessibility pattern: status
- Native DOM attributes pass through where the implementation accepts them.
Design contract values marked planned are not implementation props. The props above describe what ships today.