Item
Present a labeled record with an action.
Examples
Present a labeled record with an action
Release and review workflows
React code
import { Item } from "@accelerate/react/components";
export function Example() {
return (
<>
<Item>
<div>
<strong>Operations handbook</strong>
<p>Release and review workflows</p>
</div>
<a href="/migration/">Read guide</a>
</Item>
</>
);
}Angular code
import { Component } from "@angular/core";
import { AccItem } from "@accelerate/angular/components";
@Component({
selector: "app-example",
imports: [
AccItem,
],
template: `
<div accItem>
<div>
<strong>Operations handbook</strong>
<p>Release and review workflows</p>
</div>
<a href="/migration/">Read guide</a>
</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
Align media, text and actions. Use a native link or button for the primary action.
Import the React component Item from @accelerate/react/components. For Angular, add AccItem to the standalone component’s imports and use <div accItem>.
Examples use these React parts: Item. The Angular examples show the corresponding directives and template hosts.
API reference
- Content
- Compose label, supporting text, and an action.
- Action
- Use a link for navigation or button for a command.