Card compact and expanded template
This commit is contained in:
@@ -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.)
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user