A black shape at the top of the screen for an agent working in the background: a notch with curved shoulders or a floating island. It sits as two small ears, grows a little for an event and opens into a panel for a decision, as one continuous change of shape.
On this page
- Agent running in the background
- Approval at the top of the screen
- Run finished
- Desktop and phone app shells
- Product video
Examples
Three states
Installation
Installation is part of Pro
Pro components install from a licensed registry. The live preview stays open to everyone.
Props
- shape
"notch"|"island"- Default
"notch" - A notch is glued to the top edge with concave shoulders. An island floats 8px below it as a pill.
- state
"compact"|"peek"|"expanded"- Controlled state. Compact shows the ears, peek adds one line under them, expanded opens the panel.
- defaultState
NotchState- Default
"compact" - Starting state when uncontrolled.
- onStateChange
(state) => void- Called when the ears are pressed (open or close) and on Escape (compact).
- left
ReactNode- The left ear: an icon first, then a short title. A compact island is a 124px pill that keeps only the icon; the title shows once it widens.
- right
ReactNode- The right ear: one value, such as the elapsed time.
- peek
ReactNode- The line under the ears in the peek state.
- children
ReactNode- The panel in the expanded state.
- label
string- Names the region and the ears button.
- message
string- Announced politely when it changes.
- cutout
number- Default
120 notch, 40 island - The camera's width between the ears. It shrinks, to 40px at least, so the ears fit a narrow screen.
- expandedWidth
number- Default
380 - The panel's width, clamped to the screen less 24px.
- className
string- Placement. Default: across the top of the nearest positioned parent.
- NotchElapsed
startedAt, running?, endedAt?, now?- The time since startedAt for the right ear, from live-activity's clock.
- NotchCheck
done- A check that draws once when done turns true.
| Prop | Type | Default | Description |
|---|---|---|---|
| shape | "notch" | "island" | "notch" | A notch is glued to the top edge with concave shoulders. An island floats 8px below it as a pill. |
| state | "compact" | "peek" | "expanded" | - | Controlled state. Compact shows the ears, peek adds one line under them, expanded opens the panel. |
| defaultState | NotchState | "compact" | Starting state when uncontrolled. |
| onStateChange | (state) => void | - | Called when the ears are pressed (open or close) and on Escape (compact). |
| left | ReactNode | - | The left ear: an icon first, then a short title. A compact island is a 124px pill that keeps only the icon; the title shows once it widens. |
| right | ReactNode | - | The right ear: one value, such as the elapsed time. |
| peek | ReactNode | - | The line under the ears in the peek state. |
| children | ReactNode | - | The panel in the expanded state. |
| label | string | - | Names the region and the ears button. |
| message | string | - | Announced politely when it changes. |
| cutout | number | 120 notch, 40 island | The camera's width between the ears. It shrinks, to 40px at least, so the ears fit a narrow screen. |
| expandedWidth | number | 380 | The panel's width, clamped to the screen less 24px. |
| className | string | - | Placement. Default: across the top of the nearest positioned parent. |
| NotchElapsed | startedAt, running?, endedAt?, now? | - | The time since startedAt for the right ear, from live-activity's clock. |
| NotchCheck | done | - | A check that draws once when done turns true. |
Accessibility
- The shape is a region named by label. The ears are one button with aria-expanded, controlling the panel.
- Enter or Space on the ears opens the panel or closes it. Escape anywhere inside collapses to compact and puts focus on the ears.
- message sits in a polite live region, so a new step or a request for approval is read once, without moving focus.
- Content that is fading out is inert and hidden from screen readers.
- With reduced motion the shape and its content change at once.
What it handles
- 01Draws a black shape glued to the top edge: a notch with curved shoulders, or a floating island pill.
- 02Shows an icon on the left ear and one value on the right, either side of the camera cutout. A compact island stays a short pill with just the icon and the value.
- 03Grows a little for an event (peek) and opens into a panel for a decision (expanded), as one continuous change of shape.
- 04Widens first, then grows taller; closing plays the same path backwards, so the shape never jumps.
- 05Fades the old content out before the new one fades in, and clips both to the shape while it moves.
- 06Collapses on Escape with focus back on the ears, and announces each state's message politely.
States
- First render
- Nothing. The shape paints at its size, open or shut
- none
- Compact to peek or expanded
- The shape widens, then grows down
- 280ms, then 280ms, both ease in and out
- Back to compact
- It gets shorter, then narrower
- 280ms, then 280ms, both ease in and out
- Ear text changes width
- Only the width moves; under 24px it moves together with a peek's height
- 280ms, ease in and out
- Old content
- Fades out
- 120ms, ease out
- New content
- Fades in as the shape settles
- 180ms, ease out
- Done
- The check draws once
- 180ms, ease out
- Reduced motion
- Every change lands at once
- 0ms
| State | What moves | Timing |
|---|---|---|
| First render | Nothing. The shape paints at its size, open or shut | none |
| Compact to peek or expanded | The shape widens, then grows down | 280ms, then 280ms, both ease in and out |
| Back to compact | It gets shorter, then narrower | 280ms, then 280ms, both ease in and out |
| Ear text changes width | Only the width moves; under 24px it moves together with a peek's height | 280ms, ease in and out |
| Old content | Fades out | 120ms, ease out |
| New content | Fades in as the shape settles | 180ms, ease out |
| Done | The check draws once | 180ms, ease out |
| Reduced motion | Every change lands at once | 0ms |
Works with
When to use
When to use
- An agent working while the person uses the rest of the app: the step and the time sit in two small ears at the top.
- A decision that should not get lost: it opens into Approve and Deny at the top of the screen, then shrinks back.
When not to use
- A capsule in a list or a corner: use Agent Activities.
- The bare capsule for your own content: use Live Activity.
- Approvals in a queue: use Approval Prompt.
Using with AI
Use Copy page for AI above to give your assistant this page, Copy prompt under the install command to have it installed and wired to your data, or connect the Knowns UI MCP server and just ask:
- Add the Knowns UI Notch Island to my app and wire it to my own data.
- I need an agent working while the person uses the rest of the app: the step and the time sit in two small ears at the top. Set that up with the Knowns UI Notch Island.
- Which Notch Island props do I need for a minimal setup? Show me a short example.
With the server connected, your assistant calls get_component({ name: "notch-island" }) and search_docs({ query: "notch island" }). Pro props, full examples and source come back once your license key is in the MCP config.