Skip to content

Commit d212286

Browse files
committed
fix(FauxInput): add mediaLayout pass-thru prop
1 parent bbe1263 commit d212286

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

packages/forms/src/elements/faux-input/FauxInput.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ const FauxInputComponent = forwardRef<HTMLDivElement, IFauxInputProps>(
2626
onFocus,
2727
readOnly,
2828
validation,
29+
mediaLayout,
2930
...other
3031
},
3132
ref
@@ -51,6 +52,7 @@ const FauxInputComponent = forwardRef<HTMLDivElement, IFauxInputProps>(
5152
$isFocused={controlledIsFocused === undefined ? isFocused : controlledIsFocused}
5253
$isHovered={isHovered}
5354
$isReadOnly={readOnly}
55+
$mediaLayout={mediaLayout}
5456
$validation={validation}
5557
data-test-is-focused={controlledIsFocused === undefined ? isFocused : controlledIsFocused}
5658
tabIndex={disabled ? undefined : 0}

packages/forms/src/types/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ export interface IFauxInputProps
111111
isFocused?: boolean;
112112
/** Applies hover stying */
113113
isHovered?: boolean;
114+
/** @ignore Internal use only */
115+
mediaLayout?: boolean;
114116
}
115117

116118
export interface IFauxInputIconProps

0 commit comments

Comments
 (0)