Track HiveGrid Cloud planning reference
This commit is contained in:
1 parent
b3d5ea6764
commit
e341c5938a
5784 files changed
+1104929
-3
No files matched your search
@@ -0,0 +1,24 @@
|
||||
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>;
|
||||
}
|
||||
Reference in new issue
Block a user