Skip to content

ViolationCard

API reference and demos for ViolationCard.

Source

import { ViolationCard } 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
expanded boolean — —
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.
onExpandedChange (…) => void — —
onIgnore (…) => … — —
onOpenFile (…) => … — Adds an "Open in Files" link to each violation that names a file.
showFile boolean — —
violation* Violation — —
workDir* string — —