Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 1.18 KB

File metadata and controls

30 lines (23 loc) · 1.18 KB
section Extensions
subsection Component groups
id Log snippet
source react
propComponents
LogSnippet
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.

Examples

Basic log snippet

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.