Card compact and expanded template

This commit is contained in:
adilallo committed 2026-02-11 22:02:10 -07:00
1 parent f60df15c2b
commit b2ed1d438c
44 files changed
+1920 -48

No files matched your search

+12
View File
@@ -502,6 +502,18 @@ export function normalizeLabelVariant(
return defaultValue;
}
/**
* Normalize TextArea appearance prop (default/embedded; Figma: Default/Embedded).
*/
export function normalizeTextAreaAppearance(
value: string | undefined,
defaultValue: "default" = "default"
): "default" | "embedded" {
if (!value) return defaultValue;
const n = value.toLowerCase();
return n === "embedded" ? "embedded" : "default";
}
/**
* Normalize small/medium/large size prop values (for SelectInput, TextArea, etc.)
*/