UNPKG

ladle-inject-custom-addons

Version:
12 lines (11 loc) 381 B
import React from "react"; interface Options { /** * Lower numbers go earlier in the addon list. * The built-in ladle addons are priorities 1-n where n is the number of enabled addons. * @default 0 */ position?: number; } export declare const useAddonPanelPortal: (button: React.ReactNode, { position }: Options) => React.ReactPortal | null; export {};