Skip to content
Snippets Groups Projects
Commit b5812f8a authored by Aggarwal Himanshu's avatar Aggarwal Himanshu
Browse files

Add type prop to Button component

parent 17a4b574
No related branches found
No related tags found
2 merge requests!17Merge develop into main,!9Add support for filtering cryptocurrencies using the filter components
import classNames from "classnames";
import React from "react";
export default function Button({ children, className, onClick }) {
export default function Button({ children, className, onClick, type }) {
return (
<button
className={classNames("py-2 px-5 rounded-xl", className)}
onClick={onClick}
type={type ? type : "button"}
>
{children}
</button>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment