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.
 
 

23 lines
541 B

import * as React from 'react';
import classNames from 'classnames';
import GitHubButton from 'react-github-button';
import './Github.less';
export interface GithubProps {
responsive: null | 'narrow' | 'crowded';
}
export default ({ responsive }: GithubProps) => {
return (
<GitHubButton
id="github-btn"
className={classNames({
'responsive-mode': responsive,
[`responsive-${responsive}`]: responsive,
})}
type="stargazers"
namespace="ant-design"
repo="ant-design"
/>
);
};