diff --git a/src/components/Button.tsx b/src/components/Button.tsx index a0b02dd..c542807 100644 --- a/src/components/Button.tsx +++ b/src/components/Button.tsx @@ -2,13 +2,20 @@ import { JSX, ParentComponent, Show, splitProps } from 'solid-js' import { twMerge } from 'tailwind-merge' export const Button: ParentComponent< - JSX.ButtonHTMLAttributes & { loading?: boolean } + JSX.ButtonHTMLAttributes & { + loading?: boolean + disabled?: boolean + } > = (props) => { - const [local, others] = splitProps(props, ['class', 'loading']) + const [local, others] = splitProps(props, ['class', 'loading', 'disabled']) return (