Align props with figma

This commit is contained in:
adilallo
2026-02-04 16:52:03 -07:00
parent ee9784271f
commit af7e2d3e51
53 changed files with 1287 additions and 108 deletions
+11 -2
View File
@@ -1,16 +1,25 @@
"use client";
import { memo } from "react";
import { normalizeSectionHeaderVariant } from "../../lib/propNormalization";
export type SectionHeaderVariantValue = "default" | "multi-line" | "Default" | "Multi-Line";
interface SectionHeaderProps {
title: string;
subtitle: string;
titleLg?: string;
variant?: "default" | "multi-line";
/**
* Section header variant. Accepts both lowercase and PascalCase (case-insensitive).
* Figma uses PascalCase, codebase uses lowercase - both are supported.
*/
variant?: SectionHeaderVariantValue;
}
const SectionHeader = memo<SectionHeaderProps>(
({ title, subtitle, titleLg, variant = "default" }) => {
({ title, subtitle, titleLg, variant: variantProp = "default" }) => {
// Normalize props to handle both PascalCase (Figma) and lowercase (codebase)
const variant = normalizeSectionHeaderVariant(variantProp);
return (
<div
className={