@fidely-ui/react
Version:
Fidely UI is a modern, beautifully crafted React design system powered by Ark UI and Panda CSS, delivering accessible and themeable components for building exceptional web apps
9 lines (8 loc) • 441 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { forwardRef } from 'react';
import { IconButton } from '../icon-button/index';
import { FiClose } from '../icons/FiClose';
export const CloseButton = forwardRef(function CloseButton(props, ref) {
return (_jsx(IconButton, { variant: 'ghost', "aria-label": "Close", ref: ref, ...props, children: props.children ?? _jsx(FiClose, {}) }));
});
CloseButton.displayName = 'CloseButton';