Add typography helpers

This commit is contained in:
thesn10
2026-07-03 12:57:11 +02:00
parent 97afb5c23c
commit cad79664c3
2 changed files with 17 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
import type { ComponentProps, JSX } from "react";
import { Typography } from "heroui-native";
type MonoTextProps = ComponentProps<typeof Typography>;
export function MonoText({ className, style, ...props }: MonoTextProps): JSX.Element {
return (
<Typography
type="code"
className={`self-auto bg-transparent px-0 py-0 ${className ?? ""}`}
style={[{ fontFamily: "DMMono_500Medium" }, style]}
{...props}
/>
);
}

View File

@@ -0,0 +1,2 @@
export const MICRO_LABEL_CLASS =
"text-[11px] font-semibold uppercase tracking-wider text-subtle";