Moved tabler compoments into this project for more control

This commit is contained in:
Jamie Curnow
2021-07-14 20:48:05 +10:00
parent 5ad5ad41c7
commit 52f3801b4e
37 changed files with 1247 additions and 12883 deletions

View File

@@ -0,0 +1,30 @@
import React, { ReactNode } from "react";
import cn from "classnames";
export interface ButtonListProps {
/**
* Child elements within
*/
children?: ReactNode;
/**
* Additional Class
*/
className?: string;
/**
* Alignment
*/
align?: "center" | "right";
}
export const ButtonList: React.FC<ButtonListProps> = ({
children,
className,
align,
}) => {
const classes = {
"justify-content-center": align === "center",
"justify-content-end": align === "right",
};
return <div className={cn("btn-list", classes, className)}>{children}</div>;
};