import React from "react"; import { PlusDrawer as PlusDrawerElement } from "../dist/components/drawer/index.js"; export type { PlusDrawerElement }; export interface PlusDrawerProps extends Pick< React.AllHTMLAttributes, | "children" | "dir" | "hidden" | "id" | "lang" | "slot" | "style" | "title" | "translate" | "onClick" | "onFocus" | "onBlur" > { /** Whether the drawer is open */ isOpen?: boolean; /** The size of the drawer */ size?: PlusDrawerElement["size"]; /** The position of the drawer */ orientation?: PlusDrawerElement["orientation"]; /** The duration of the animation in milliseconds */ animationDuration?: PlusDrawerElement["animationDuration"]; /** A space-separated list of the classes of the element. Classes allows CSS and JavaScript to select and access specific elements via the class selectors or functions like the method `Document.getElementsByClassName()`. */ className?: string; /** Contains a space-separated list of the part names of the element that should be exposed on the host element. */ exportparts?: string; /** Used for labels to link them with their inputs (using input id). */ htmlFor?: string; /** Used to help React identify which items have changed, are added, or are removed within a list. */ key?: number | string; /** Contains a space-separated list of the part names of the element. Part names allows CSS to select and style specific elements in a shadow tree via the ::part pseudo-element. */ part?: string; /** A mutable ref object whose `.current` property is initialized to the passed argument (`initialValue`). The returned object will persist for the full lifetime of the component. */ ref?: any; /** Allows developers to make HTML elements focusable, allow or prevent them from being sequentially focusable (usually with the `Tab` key, hence the name) and determine their relative ordering for sequential focus navigation. */ tabIndex?: number; } /** * Sliding panel component that appears from the edge of the screen. * --- * * * ### **Methods:** * - **hide(): _void_** - Hides the drawer with animation * - **show(): _void_** - Shows the drawer with animation * * ### **Slots:** * - **header** - The header content of the drawer * - **body** - The main content of the drawer * - **footer** - The footer content of the drawer * - **close** - Custom close button (defaults to an X icon) * * ### **CSS Parts:** * - **container** - The main container element * - **overlay** - The overlay element * - **drawer** - The drawer element * - **header** - The header element * - **body** - The body element * - **footer** - The footer element * - **close-button** - The close button element */ export const PlusDrawer: React.ForwardRefExoticComponent;