Add typography helpers
This commit is contained in:
15
app/src/components/MonoText.tsx
Normal file
15
app/src/components/MonoText.tsx
Normal 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}
|
||||
/>
|
||||
);
|
||||
}
|
||||
2
app/src/lib/typography.ts
Normal file
2
app/src/lib/typography.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
export const MICRO_LABEL_CLASS =
|
||||
"text-[11px] font-semibold uppercase tracking-wider text-subtle";
|
||||
Reference in New Issue
Block a user