feat: add disabled prop to SolidButton

This commit is contained in:
s
2025-12-13 18:56:57 +01:00
parent a95d63d12e
commit 85d7f4c61c

View File

@@ -63,12 +63,14 @@ export const SolidButton = ({
children, children,
theme = 'light', theme = 'light',
type = 'submit', type = 'submit',
disabled = false,
onClick = undefined onClick = undefined
}) => ( }) => (
<StyledSolidButton <StyledSolidButton
type={type} type={type}
className={`btn btn-${theme}`} className={`btn btn-${theme}`}
onClick={onClick} onClick={onClick}
disabled={disabled}
> >
{children} {children}
</StyledSolidButton> </StyledSolidButton>