Bubble
Render a short conversational response.
Examples
Render a short conversational response
The schedule is ready for review. Check the review guidance before you publish.
React code
import { Bubble } from "@accelerate/react/components";
export function Example() {
return (
<>
<Bubble>
<p>The schedule is ready for review. Check the <a href="/migration/">review guidance</a> before you publish.</p>
</Bubble>
</>
);
}Angular code
import { Component } from "@angular/core";
import { AccBubble } from "@accelerate/angular/components";
@Component({
selector: "app-example",
imports: [
AccBubble,
],
template: `
<div accBubble>
<p>The schedule is ready for review. Check the <a href="/migration/">review guidance</a> before you publish.</p>
</div>
`,
})
export class Example {}Installation
Source preview. The expanded component catalog is ahead of the public npm releases. To run these examples in your own application, use packages built from the SDK source used for the previews or a release that includes the APIs below.
- React
@accelerate/ui@0.4.0and@accelerate/react@0.4.0- Angular
@accelerate/ui@0.4.0and@accelerate/angular@0.2.0
Load @accelerate/ui/theme.css and put acc-theme on the app or the region using Accelerator components. See the framework setup guide for the theme and adapter conventions.
Usage
Wrap conversational content, including links and formatted text.
Import the React component Bubble from @accelerate/react/components. For Angular, add AccBubble to the standalone component’s imports and use <div accBubble>.
Examples use these React parts: Bubble. The Angular examples show the corresponding directives and template hosts.
API reference
- Content
- Supports text, links, and authored markup.
- Message
- Use a message wrapper when you need actions and a conversation-level structure.