Add StickyHeader Component and introduce clsx for merging tailwind classNames
This commit is contained in:
parent
7ffda11a34
commit
db23d06fb2
14 changed files with 115 additions and 24 deletions
|
|
@ -1,5 +1,6 @@
|
|||
import {defaultIconSize} from "./SvgIcon";
|
||||
import {type BasicButtonProps, basicButtonStyle, ButtonType} from "./BasicButtonDefinitions";
|
||||
import clsx from "clsx";
|
||||
|
||||
type ButtonProps = BasicButtonProps & {
|
||||
onClick: () => void;
|
||||
|
|
@ -20,7 +21,12 @@ export default function Button({
|
|||
}: ButtonProps) {
|
||||
return (
|
||||
<button
|
||||
className={`${basicButtonStyle} ${buttonType.backgroundColor} ${buttonType.textColor} ${className}`}
|
||||
className={clsx(
|
||||
basicButtonStyle,
|
||||
buttonType.backgroundColor,
|
||||
buttonType.textColor,
|
||||
className
|
||||
)}
|
||||
onClick={onClick}
|
||||
disabled={disabled}
|
||||
{...props}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue