Typographytypographymetricscode
Monospace Metrics
Code/terminal styled stat line with green accent.
Live Preview
Monospace Metrics
Usage
Copy and paste this code into your React component:
tsx
import { MonospaceStatLine } from 'react-component-kit-ui/typography';
<MonospaceStatLine>Content</MonospaceStatLine>Manual Installation
If you are not using the npm package, create a new file and paste the following code: src/components/MonospaceStatLine.tsx + MonospaceStatLine.css:
MonospaceStatLine.tsx
'use client';
import type { ReactNode } from 'react';
import './MonospaceStatLine.css';
/** MonospaceStatLine โ ported from astro-component-kit. */
export interface MonospaceStatLineProps {
children?: ReactNode;
}
export function MonospaceStatLine({ children }: MonospaceStatLineProps) {
return (
<>
<div className="mono-stat" data-rk-f4a3f2="">{children}</div>
</>
);
}
export default MonospaceStatLine;MonospaceStatLine.css
/* MonospaceStatLine โ ported from astro-component-kit (typography/MonospaceStatLine.astro) */
.mono-stat:where([data-rk-f4a3f2]) { background: #000; color: #00ff00; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; padding: 0.75rem 1.25rem; border-left: 3px solid #00ff00; font-size: 0.8rem; border-radius: 4px; border: 1px solid rgba(0, 255, 0, 0.1); }Quick Info
- Category
- Typography
- Filename
MonospaceStatLine.tsx- Dependencies
- None โ pure React + CSS
- Tags
- typographymetricscode