Version
Renders clicky-ui build metadata: git commit, tag, and build date, plus a status badge for a dirty working tree, Vite dev mode, or Storybook. Commit/tag/date/dirty are captured when the library is built (Vite define); dev and storybook are detected at runtime.
Import
Section titled “Import”import { Version } from "@flanksource/clicky-ui/data";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 |
|---|---|---|---|
commit |
boolean |
true |
Show the short git commit hash. |
date |
boolean |
true |
Show the build date. |
info |
Partial<VersionInfo> |
— | Override the resolved build/runtime info. Primarily for stories and tests; when omitted the values injected at build time are used. |
tag |
boolean |
true |
Show the git tag. |