package.src.components.Drawer.DrawerCloseButton.tsx Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of react-core Show documentation
Show all versions of react-core Show documentation
This library provides a set of common React components for use with the PatternFly reference implementation.
The newest version!
import * as React from 'react';
import styles from '@patternfly/react-styles/css/components/Drawer/drawer';
import { css } from '@patternfly/react-styles';
import { Button } from '../Button';
import TimesIcon from '@patternfly/react-icons/dist/esm/icons/times-icon';
export interface DrawerCloseButtonProps extends React.HTMLProps {
/** Additional classes added to the drawer close button outer . */
className?: string;
/** A callback for when the close button is clicked */
onClose?: () => void;
/** Accessible label for the drawer close button */
'aria-label'?: string;
}
export const DrawerCloseButton: React.FunctionComponent = ({
// eslint-disable-next-line @typescript-eslint/no-unused-vars
className = '',
onClose = () => undefined as any,
'aria-label': ariaLabel = 'Close drawer panel',
...props
}: DrawerCloseButtonProps) => (
);
DrawerCloseButton.displayName = 'DrawerCloseButton';
© 2015 - 2024 Weber Informatics LLC | Privacy Policy