We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48f35e1 commit 7beae4dCopy full SHA for 7beae4d
app/components/ui/status-button.tsx
@@ -15,13 +15,15 @@ export const StatusButton = ({
15
className,
16
children,
17
spinDelay,
18
+ size,
19
variant,
20
...props
21
}: React.ComponentProps<'button'> & {
22
status: 'pending' | 'success' | 'error' | 'idle'
23
message?: string | null
24
spinDelay?: Parameters<typeof useSpinDelay>[1]
- variant: ButtonVariant['variant']
25
+ size?: ButtonVariant['size']
26
+ variant?: ButtonVariant['variant']
27
}) => {
28
const delayedPending = useSpinDelay(status === 'pending', {
29
delay: 400,
@@ -64,6 +66,7 @@ export const StatusButton = ({
64
66
<Button
65
67
className={cn('flex justify-center gap-4', className)}
68
variant={variant}
69
+ size={size}
70
{...props}
71
>
72
<div>{children}</div>
0 commit comments