@yamada-ui/react
Version:
React UI components of the Yamada, by the Yamada, for the Yamada built with React and Emotion
39 lines (38 loc) • 1.86 kB
TypeScript
import { ThemeProps } from "../../core/system/index.types.js";
import { Component, HTMLStyledProps, HTMLStyledPropsWithoutAs } from "../../core/components/index.types.js";
import "../../core/index.js";
import { ResizableStyle } from "./resizable.style.js";
import { UseResizableItemProps, UseResizableProps, UseResizableTriggerProps } from "./use-resizable.js";
import "../../index.js";
import * as react91 from "react";
import { ForwardedRef, ReactElement } from "react";
//#region src/components/resizable/resizable.d.ts
/**
* `Resizable` is accessible resizable panel groups and layouts with keyboard support.
*
* @see https://yamada-ui.com/docs/components/resizable
*/
interface ResizableRootProps extends HTMLStyledProps, ThemeProps<ResizableStyle>, Omit<UseResizableProps, "orientation"> {
/**
* Ref for resizable root element.
*/
rootRef?: ForwardedRef<HTMLDivElement>;
}
declare const ResizablePropsContext: react91.Context<Partial<ResizableRootProps> | undefined>, useResizablePropsContext: () => Partial<ResizableRootProps> | undefined;
declare const ResizableRoot: Component<"div", ResizableRootProps>;
interface ResizableItemProps extends Omit<HTMLStyledPropsWithoutAs, "order">, UseResizableItemProps {}
declare const ResizableItem: Component<"div", ResizableItemProps>;
interface ResizableTriggerProps extends HTMLStyledPropsWithoutAs, UseResizableTriggerProps {
/**
* The resizable trigger icon to use.
*/
icon?: ReactElement;
/**
* Props for resizable trigger icon component.
*/
iconProps?: HTMLStyledProps;
}
declare const ResizableTrigger: Component<"div", ResizableTriggerProps>;
//#endregion
export { ResizableItem, ResizableItemProps, ResizablePropsContext, ResizableRoot, ResizableRootProps, ResizableTrigger, ResizableTriggerProps, useResizablePropsContext };
//# sourceMappingURL=resizable.d.ts.map