Skip to content

ViolationSnippet

The flagged lines of a violation with a few lines of context either side, numbered and syntax-highlighted, with the full message above the scrolling source. Without a loader (or a line) it shows the message and the snippet the linter reported in code, if any.

Source

import { ViolationSnippet } from "@flanksource/clicky-ui/data";

No dedicated Storybook demo is available for this component yet.

The props table documents the component-specific surface. Standard DOM attributes inherited from React, such as className, event handlers, and accessibility attributes, may also be accepted when the component’s prop type extends a native element.

Prop Type Default Description
file* string — —
loadSource LintSourceLoader — —
showMessage boolean true —
violation* Violation — —
workDir* string — —