diff --git a/src/Shared/Components/Button/Button.component.tsx b/src/Shared/Components/Button/Button.component.tsx index 3dbbdd6b2..7c4fa4409 100644 --- a/src/Shared/Components/Button/Button.component.tsx +++ b/src/Shared/Components/Button/Button.component.tsx @@ -137,6 +137,7 @@ const Button = ({ icon = null, ariaLabel = null, showAriaLabelInTippy = true, + fullWidth = false, ...props }: ButtonProps) => { const isDisabled = disabled || isLoading @@ -171,7 +172,7 @@ const Button = ({ diff --git a/src/Shared/Components/Button/types.ts b/src/Shared/Components/Button/types.ts index 505fcf2e5..5a645fca1 100644 --- a/src/Shared/Components/Button/types.ts +++ b/src/Shared/Components/Button/types.ts @@ -85,6 +85,12 @@ export type ButtonProps = ( * @default false */ disabled?: boolean + /** + * Determines if the button should expand to fill the full width of its container. + * + * @default false + */ + fullWidth?: boolean } & ( | { /** diff --git a/src/Shared/Components/SelectPicker/common.tsx b/src/Shared/Components/SelectPicker/common.tsx index 4d4500d05..3c48006a5 100644 --- a/src/Shared/Components/SelectPicker/common.tsx +++ b/src/Shared/Components/SelectPicker/common.tsx @@ -149,7 +149,7 @@ export const SelectPickerOption = ({ disabled={isDisabled} /> )} -
+
{startIcon && (
{startIcon}
)}