mirror of
https://github.com/checktheroads/hyperglass
synced 2024-05-11 05:55:08 +00:00
27 lines
439 B
JavaScript
27 lines
439 B
JavaScript
import * as React from "react";
|
|
import { IconButton } from "@chakra-ui/core";
|
|
|
|
const TableIconButton = ({
|
|
icon,
|
|
onClick,
|
|
isDisabled,
|
|
color,
|
|
children,
|
|
...props
|
|
}) => (
|
|
<IconButton
|
|
size="sm"
|
|
icon={icon}
|
|
borderWidth={1}
|
|
onClick={onClick}
|
|
variantColor={color}
|
|
isDisabled={isDisabled}
|
|
aria-label="Table Icon Button"
|
|
{...props}
|
|
>
|
|
{children}
|
|
</IconButton>
|
|
);
|
|
|
|
export default TableIconButton;
|