The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
---
title: InlineBanner
description: Inline feedback with node content, icons, and actions.
---
import { PageBanner } from "/snippets/page-banner.mdx"
import { StoryEmbed } from '/snippets/ui/StoryEmbed.mdx';
import InlineBannerReference from '/snippets/ui/generated/components/feedback/inline-banner.mdx';
## Overview
`InlineBanner` composes [Banner](/ui/primitives/feedback/banner) with a rounded inline layout and a decorative information icon. It shares Banner's independent `status`, `variant`, `color`, `icon` and `action` contracts. Its default appearance is `soft` and its default status is `info`.
<StoryEmbed
storyId="ui-feedback-inlinebanner--display"
title="Inline banner with an action"
height={130}
/>
## Usage
```tsx
import { InlineBanner } from 'twenty-ui/components/feedback';
export const ModelsBanner = ({ onConfigure }: { onConfigure: () => void }) => (
<InlineBanner
status="error"
action={
<InlineBanner.Action onClick={onConfigure}>
Configure models
</InlineBanner.Action>
}
>
No AI models are enabled.
</InlineBanner>
);
```
The `standard` layout fills the available width. Plain string children truncate, with keyboard focus, pointer hover or touch revealing the full string in a tooltip. Rich node children render directly, so embedded links and controls retain their own semantics. Compose explicit typography when rich content needs truncation.
Use `layout="compact"` for wrapping content, closer spacing and a maximum content width of 512px. Add `fullWidth` to remove that cap and fill the available parent width, including padding and borders. It defaults to `false` and does not change the standard layout, which already fills its parent. It has no bottom margin. Layout is independent of `solid` or `soft` appearance. `embedded` removes the standard layout's bottom margin.
```tsx
import { InlineBanner } from 'twenty-ui/components/feedback';
import { IconInfoCircle } from 'twenty-ui/icon';
export const ConnectionBanner = () => (
<InlineBanner
layout="compact"
status="warning"
color="blue"
icon={<IconInfoCircle aria-hidden="true" />}
action={
<InlineBanner.Action href="/settings/accounts">
Connection settings
</InlineBanner.Action>
}
>
Connect your account to sync contacts.
</InlineBanner>
);
```
<StoryEmbed
storyId="ui-feedback-inlinebanner--compact-link"
title="Compact banner with a destination link"
height={120}
/>
`InlineBanner.Action` provides a small outline button that inherits the banner’s displayed color, including explicit palette overrides and solid appearances. It supports Button interactions, links, refs and custom rendering. The `action` slot also accepts arbitrary controls.
The root target is a `div`. Native props, `className`, `style` and `ref` target that root; Base UI `render` can compose another element and receives resolved Banner state. `action` accepts any ReactNode, including multiple controls with their complete Button or link APIs. `icon={null}` removes the default icon.
The caller owns whether the banner is rendered and whether changes should be announced. Supply `role="status"` and `aria-live="polite"`, or an appropriate live-region wrapper, when needed. Status does not assign live-region semantics. Name action controls and mark decorative custom icons with `aria-hidden`.
## Migration
Replace `message` with `children`, `LeftIcon={Icon}` with `icon={<Icon />}`, and `button` configuration with an `action` node. Use `InlineBanner.Action` to keep action styling aligned with the banner. Replace `variant="compact"` with `layout="compact"`; standard is now the default layout. Use `status="error"` for error meaning or `color="red"` for a palette override.
## Props
<InlineBannerReference />
<PageBanner illustration="card-page-messaging-channels" />