Components
InlineCode
Code inside running text, such as a variable, a command or a file name.
Overview
InlineCode renders a <code> element styled for use inside a sentence. Markdown uses it for inline code spans. For multi-line code, use CodeBlock.
Import
import { InlineCode } from '@unflowio/ui/components/InlineCode';Props
InlineCode takes the props of a native <code> element (BaseHTMLProps<HTMLElement>): children, className, ref and the rest.
Basic usage
Set APP_ENV before running bun run report.
<p>
Set <InlineCode>APP_ENV</InlineCode> before running <InlineCode>bun run report</InlineCode>.
</p>CodeBlock
A block of code with a header (language, filename, app actions, Copy), syntax highlighting, optional line numbers and a height cap.
Chart
One chart component for dashboards — bar, horizontal bar, stacked bar, area, line, donut and sparkline — colored with tokens and readable by screen readers.