| section | Extensions | |
|---|---|---|
| subsection | Component groups | |
| id | Log snippet | |
| source | react | |
| propComponents |
|
|
| sourceLink | https://github.com/patternfly/react-component-groups/blob/main/packages/module/patternfly-docs/content/extensions/component-groups/examples/LogSnippet/LogSnippet.md |
import LogSnippet from '@patternfly/react-component-groups/dist/dynamic/LogSnippet'; import { FunctionComponent } from 'react';
A log snippet component provides a way to display a log snippet or code along with a message.
The log snippet supports several variants configurable using variant property for different scenarios. Each variant has an associated status icon and color similar to alert component.