MCPcopy Create free account
hub / github.com/dailydotdev/apps / getPaddingClass

Function getPaddingClass

packages/shared/src/components/fields/Textarea.tsx:69–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

67 const hasInnerLabel = isPrimaryField && !!label;
68 const hasAdditionalSpacing = hasInnerLabel && !focused && !hasInput;
69 const getPaddingClass = (): string => {
70 if (!hasInnerLabel) {
71 return 'py-4';
72 }
73 return hasAdditionalSpacing ? 'pt-2' : 'pt-1';
74 };
75
76 return (
77 <BaseFieldContainer

Callers 1

TextareaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected