diff --git a/app/soapbox/components/ui/input/input.tsx b/app/soapbox/components/ui/input/input.tsx index 67c32c3b9..14bbeb60d 100644 --- a/app/soapbox/components/ui/input/input.tsx +++ b/app/soapbox/components/ui/input/input.tsx @@ -18,6 +18,8 @@ interface IInput extends Pick, 'maxL defaultValue?: string, /** Extra class names for the element. */ className?: string, + /** Extra class names for the outer
element. */ + outerClassName?: string, /** URL to the svg icon. */ icon?: string, /** Internal input name. */ @@ -37,7 +39,7 @@ const Input = React.forwardRef( (props, ref) => { const intl = useIntl(); - const { type = 'text', icon, className, ...filteredProps } = props; + const { type = 'text', icon, className, outerClassName, ...filteredProps } = props; const [revealed, setRevealed] = React.useState(false); @@ -48,7 +50,7 @@ const Input = React.forwardRef( }, []); return ( -
+
{icon ? (