[text] Anything

Viewer

copydownloadembedprintName: Anything
  1. import React from "react";
  2. import { IconType } from "react-icons/lib/esm/iconBase";
  3. interface Props {
  4.   onClick: (params: any) => void;
  5.   children: string;
  6.   icon: IconType;
  7. }
  8.  
  9. const Button = ({ onClick, children, icon }: Props) => {
  10.   return (
  11.     <div className="p-5">
  12.       <button onClick={onClick} className="btn btn-primary">
  13.         {children}
  14.       </button>
  15.     </div>
  16.   );
  17. };
  18.  
  19. export default Button;
  20.  

Editor

You can edit this paste and save as new:


File Description
  • Anything
  • Paste Code
  • 24 Mar-2023
  • 429 Bytes
You can Share it: