Skip to content
Snippets Groups Projects
index.tsx 378 B

import { ReactNode } from "react";

import './button.scss';

interface Props {
    children: ReactNode;
    type?: "button" | "submit" | "reset";
    className?: string;
}

export default function Button({children, type, className}: Props) {
    return (
        <button className={"button " + (className || '')} type={type}>
            {children}
        </button>
    );
}