ticket_manager/client/src/components/Button.tsx
2020-02-08 15:08:40 +01:00

25 lines
403 B
TypeScript

import React, { FC, Children } from "react";
interface IProps {
icon?: string;
size?: string;
shape?: string;
color?: string;
text?: string;
}
export const Button: FC<IProps> = ({
size = "small",
shape = "",
color,
text,
children
}) => {
return (
<button
className={`waves-effect waves-light btn-${size} ${shape} ${color}`}
>
{children}
</button>
);
};