mirror of
https://github.com/checktheroads/hyperglass
synced 2024-05-11 05:55:08 +00:00
17 lines
398 B
JavaScript
17 lines
398 B
JavaScript
import * as React from 'react';
|
|
import { IconButton } from '@chakra-ui/core';
|
|
|
|
export 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>
|
|
);
|