This repository has been archived on 2022-08-14. You can view files and clone it, but cannot push or open issues or pull requests.
2019-08-30 07:27:40 +00:00
|
|
|
// @flow
|
2020-06-20 20:59:15 +00:00
|
|
|
import * as React from "react";
|
|
|
|
import styled from "styled-components";
|
2019-08-30 07:27:40 +00:00
|
|
|
|
|
|
|
const Button = styled.button`
|
2021-05-06 02:35:23 +00:00
|
|
|
width: ${(props) => props.width || props.size}px;
|
|
|
|
height: ${(props) => props.height || props.size}px;
|
2019-08-30 07:27:40 +00:00
|
|
|
background: none;
|
|
|
|
border-radius: 4px;
|
|
|
|
line-height: 0;
|
|
|
|
border: 0;
|
|
|
|
padding: 0;
|
2021-01-03 04:02:57 +00:00
|
|
|
cursor: pointer;
|
|
|
|
user-select: none;
|
2021-08-05 22:03:55 +00:00
|
|
|
color: inherit;
|
2019-08-30 07:27:40 +00:00
|
|
|
`;
|
|
|
|
|
2021-01-11 07:13:58 +00:00
|
|
|
export default React.forwardRef<any, typeof Button>(
|
|
|
|
({ size = 24, ...props }, ref) => <Button size={size} {...props} ref={ref} />
|
|
|
|
);
|