UNPKG

primereact

Version:

PrimeReact is an open source UI library for React featuring a rich set of 90+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with Prime

98 lines (95 loc) 2.9 kB
/** * * StyleClass manages css classes declaratively to during enter/leave animations or just to toggle classes on an element. * * [Live Demo](https://www.primereact.org/styleclass) * * @module styleclass * */ import * as React from 'react'; /** * Defines valid properties in StyleClass component. * @group Properties */ export interface StyleClassProps { /** * A React reference to DOM element that need to specify. Required. */ nodeRef: React.MutableRefObject<React.ReactNode>; /** * Selector to define the target element. */ selector?: '@next' | '@prev' | '@parent' | '@grandparent' | string | undefined; /** * Style class to add when item begins to get displayed. * @deprecated since 10.5.2 Use 'enterFromClassName' option instead. */ enterClassName?: string | undefined; /** * Style class to add when item begins to get displayed. */ enterFromClassName?: string | undefined; /** * Style class to add during enter animation. */ enterActiveClassName?: string | undefined; /** * Style class to add when item begins to get displayed. */ enterToClassName?: string | undefined; /** * Style class to add when item begins to get hidden. * @deprecated since 10.5.2 Use 'leaveFromClassName' option instead. */ leaveClassName?: string | undefined; /** * Style class to add when item begins to get hidden. */ leaveFromClassName?: string | undefined; /** * Style class to add during leave animation. */ leaveActiveClassName?: string | undefined; /** * Style class to add when leave animation is completed. */ leaveToClassName?: string | undefined; /** * Whether to trigger leave animation when outside of the element is clicked. * @defaultValue false */ hideOnOutsideClick?: boolean | undefined; /** * Adds or removes a class when no enter-leave animation is required. */ toggleClassName?: string | undefined; /** * Used to get the child elements of the component. * @readonly */ children?: React.ReactNode | undefined; } /** * **PrimeReact - StyleClass** * * _StyleClass manages css classes declaratively to during enter/leave animations or just to toggle classes on an element._ * * [Live Demo](https://www.primereact.org/styleclass/) * --- --- * ![PrimeReact](https://primefaces.org/cdn/primereact/images/logo-100.png) * * @group Component */ export declare class StyleClass extends React.Component<StyleClassProps, any> { /** * Used to get container element. * @return {HTMLElement | null} Container element */ public getElement(): HTMLElement | null; /** * Used to get target element. * @return {HTMLElement | null} Container element */ public getTarget(): HTMLElement | null; }