Files
ontime/client/src/common/components/buttons/AddIconBtn.jsx
T
cv abdd2606ee style: consistent button style
- modify add button to be consistent with main menu colours
2021-10-24 12:40:12 +02:00

19 lines
475 B
React

import { IconButton } from '@chakra-ui/button';
import { FiPlus } from 'react-icons/fi';
export default function AddIconBtn(props) {
const { clickhandler, ...rest } = props;
return (
<IconButton
size={props.size || 'xs'}
icon={<FiPlus />}
_expanded={{ bg: 'orange.300', color: 'white' }}
_focus={{ boxShadow: 'none' }}
backgroundColor={'orange.200'}
color={'orange.500'}
onClick={clickhandler}
{...rest}
/>
);
}