You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

27 lines
687 B

import React from "react";
import { Link } from "react-router-dom";
const Button = (
{
onClick,
title,
borderType,
to,
type,
className,
submit
}
) => {
return (
<Link
to={to ? to : ''}
className={`${className} Login-box-form-btn w-full h-12 ${borderType ? borderType : 'rounded-lg'} border border-solid border-red52 ${type == 'outlined' ? 'text-red52' : 'text-white bg-red52'} flex items-center justify-center mt-4`}
onClick={onClick}
>
{submit ? <input type="submit" value={title}/> :
title}
</Link>
);
};
export default Button;