diff --git a/src/components/Button/Button.tsx b/src/components/Button/Button.tsx index 0bb57ef..85b2826 100644 --- a/src/components/Button/Button.tsx +++ b/src/components/Button/Button.tsx @@ -1,6 +1,7 @@ import './Button.sass' -import { Show, Switch, Match } from 'solid-js' +import { Show, Switch, Match, type JSXElement } from 'solid-js' import { A } from '@solidjs/router' +import { Row } from '../index' interface Props { label?: string @@ -12,6 +13,7 @@ interface Props { newtab?: boolean width?: number wide?: boolean + icon?: (props: { size?: number }) => JSXElement } const getBorderRadius = (edge: Props['edges']) => { @@ -29,7 +31,7 @@ const getBorderRadius = (edge: Props['edges']) => { export default (props: Props) => { const borderRadius = getBorderRadius(props.edges) - + const Icon = props.icon return ( <> @@ -37,6 +39,9 @@ export default (props: Props) => { @@ -44,6 +49,9 @@ export default (props: Props) => { @@ -56,25 +64,39 @@ export default (props: Props) => {