bb-plane-fork/packages/ui/src/typography/sub-heading.tsx
2025-08-11 18:42:51 +05:30

15 lines
381 B
TypeScript

import React from "react";
import { cn } from "../utils";
type Props = {
children: React.ReactNode;
className?: string;
noMargin?: boolean;
};
const SubHeading = ({ children, className, noMargin }: Props) => (
<h3 className={cn("text-xl font-medium text-custom-text-200 block leading-7", !noMargin && "mb-2", className)}>
{children}
</h3>
);
export { SubHeading };