ViolationDetail
API reference and demos for ViolationDetail.
Import
Section titled “Import”import { ViolationDetail } 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 |
— | The file an ignore rule targets; empty when the violation has none. |
ignoreBusy |
boolean |
— | — |
linter* |
string |
— | — |
loadSource |
LintSourceLoader |
— | Loads a violation's file so its card shows the flagged lines with context. |
onIgnore |
(…) => … |
— | — |
onOpenFile |
(…) => … |
— | Adds an "Open in Files" link to each violation that names a file. |
showFile |
boolean |
— | — |
showMessage |
boolean |
true |
— |
violation* |
Violation |
— | — |
workDir* |
string |
— | — |