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.
 
 

16 lines
426 B

import React, { forwardRef, Ref } from 'react';
import { Box, color } from '@stacks/ui';
import { LinkProps } from '@components/typography';
export const IconButton = forwardRef((props: LinkProps, ref: Ref<HTMLDivElement>) => (
<Box cursor="pointer">
<Box
p="tight"
borderRadius="4px"
_hover={{ bg: color('bg-alt') }}
color={color('invert')}
ref={ref}
{...props}
/>
</Box>
));