Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

Commit

Permalink
feat(submit): add size props (#479)
Browse files Browse the repository at this point in the history
  • Loading branch information
philibea authored Sep 8, 2022
1 parent f8fd94e commit 8217320
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/Submit/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ type SubmitProps = {
disabled?: boolean
icon?: ComponentProps<typeof Button>['icon']
iconPosition?: ComponentProps<typeof Button>['iconPosition']
size?: ComponentProps<typeof Button>['size']
tooltip?: ComponentProps<typeof Button>['tooltip']
tooltipBaseId?: ComponentProps<typeof Button>['tooltipBaseId']
variant?: ComponentProps<typeof Button>['variant']
Expand All @@ -21,6 +22,7 @@ const Submit = ({
disabled = false,
icon,
iconPosition,
size,
tooltip,
tooltipBaseId,
variant = 'success',
Expand Down Expand Up @@ -51,9 +53,10 @@ const Submit = ({
icon={icon}
iconPosition={iconPosition}
progress={submitting}
type="submit"
size={size}
tooltip={tooltip}
tooltipBaseId={tooltipBaseId}
type="submit"
variant={variant}
>
{children}
Expand Down

0 comments on commit 8217320

Please sign in to comment.