vd-plugins/nexxstuff/components/RichText.tsx
kmmiio99o b98ce51645
feat: add nexx lib and better Header text
nexx shouldn't be mad, right?
2026-01-25 17:09:24 +01:00

34 lines
574 B
TypeScript

import { ReactNative as RN } from "@vendetta/metro/common";
import Text from "./Text";
export namespace RichText {
export function Bold({
children,
onPress,
}: React.PropsWithChildren<{
onPress?: () => void;
}>) {
return (
<Text variant={"text-md/bold"} onPress={onPress}>
{children}
</Text>
);
}
export function Underline({
children,
onPress,
}: React.PropsWithChildren<{
onPress?: () => void;
}>) {
return (
<RN.Text
style={{ textDecorationLine: "underline" }}
onPress={onPress}
>
{children}
</RN.Text>
);
}
}