Files
HiveGrid-Wireframes/hivegrid-cloud/packages/mail/src/templates-react/_layout/Eyebrow.tsx
T

25 lines
654 B
TypeScript

import type { CSSProperties } from "react";
import type { MailBrand } from "./theme.js";
/**
* Eyebrow — small uppercase label rendered above the main heading.
* Used to communicate category (e.g. "Welcome", "Password reset").
*/
export interface EyebrowProps {
readonly brand: MailBrand;
readonly children: string;
}
const style = (brand: MailBrand): CSSProperties => ({
color: brand.mutedTextColor,
fontSize: "13px",
fontWeight: 700,
letterSpacing: "0.08em",
textTransform: "uppercase",
marginBottom: "8px",
});
export function Eyebrow({ brand, children }: EyebrowProps) {
return <div style={style(brand)}>{children}</div>;
}