gestalt
Version:
A set of React UI components which enforce Pinterest's design language
38 lines (37 loc) • 1.53 kB
TypeScript
import { ReactNode } from 'react';
type Props = {
/**
* Used to force the "active" hover state visually.
*/
active?: boolean | null | undefined;
/**
*
*/
children?: ReactNode;
/**
* An optional [Image](https://gestalt.pinterest.systems/web/image) to be displayed at the top of the layout.
*/
image?: ReactNode;
/**
* Optional callback fired when the user hovers over from WashAnimated.
*/
onMouseEnter?: (arg1: {
event: React.MouseEvent<HTMLDivElement>;
}) => void;
/**
* Optional callback fired when the user hovers off WashAnimated.
*/
onMouseLeave?: (arg1: {
event: React.MouseEvent<HTMLDivElement>;
}) => void;
};
/**
* [WashAnimated](https://gestalt.pinterest.systems/web/washanimated) is used to highlight content in grids. It visually shows that children elements belong together and can highlight the items on hover.
* 
* 
*/
declare function WashAnimated({ active, children, image, onMouseEnter, onMouseLeave, }: Props): import("react/jsx-runtime").JSX.Element;
declare namespace WashAnimated {
var displayName: string;
}
export default WashAnimated;