UNPKG

@mayank1513/fork-me

Version:

An intuitive React.js fork me ribbon component for promoting open source project forks.

2 lines (1 loc) 327 B
import*as o from"react";import{jsx as u}from"react/jsx-runtime";function M({gitHubUrl:a,onClick:t,children:e,...n}){let r=o.useCallback(()=>s=>{window.open(a,"_blank","height: 400,width:1200,left:150,top:150"),t==null||t(s)},[a,t]);return u("button",{onClick:r,type:"button",...n,children:e!=null?e:"Star Me"})}export{M as a};