diff --git a/packages/core/src/components/button/Button.tsx b/packages/core/src/components/button/Button.tsx index 7aa31cd..2ffe8fd 100644 --- a/packages/core/src/components/button/Button.tsx +++ b/packages/core/src/components/button/Button.tsx @@ -2,9 +2,10 @@ import React, { PropsWithChildren } from "react"; import { MouseEventHandler, useEffect, useState } from "react"; import { quickformtokens } from "../../style/quickFormTokensDefinition"; -import { makeStyles, shorthands } from "@griffel/react"; +import { makeStyles, mergeClasses, shorthands } from "@griffel/react"; type BtnContainerProps = { + readonly buttonClassName?: string; readonly className?: string; readonly style?: React.CSSProperties; readonly disabled?: boolean; @@ -37,7 +38,7 @@ const useButtonStyles = makeStyles({ } }) -export const Button: React.FC> = ({ children, showPressEnter, onClick, disabled, visible, style }) => { +export const Button: React.FC> = ({ children, showPressEnter, onClick, disabled, visible, style, className, buttonClassName }) => { if (typeof visible !== "undefined" && visible === false) { return (<>); @@ -60,9 +61,9 @@ export const Button: React.FC> = ({ childre }, []); return ( -
+