This commit is contained in:
Harun CAN
2026-01-30 02:57:09 +03:00
commit 8b0e7b4e1a
163 changed files with 23720 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
import type { ButtonProps } from '@chakra-ui/react';
import { IconButton as ChakraIconButton } from '@chakra-ui/react';
import * as React from 'react';
import { LuX } from 'react-icons/lu';
export type CloseButtonProps = ButtonProps;
export const CloseButton = React.forwardRef<HTMLButtonElement, CloseButtonProps>(function CloseButton(props, ref) {
return (
<ChakraIconButton variant='ghost' aria-label='Close' ref={ref} {...props}>
{props.children ?? <LuX />}
</ChakraIconButton>
);
});