UNPKG

twd-js

Version:

Test While Developing (TWD) - in-browser testing

23 lines (22 loc) 549 B
interface Options { Component: React.ReactNode; createRoot: (el: HTMLElement) => { render: (el: React.ReactNode) => void; }; } /** * Initialize the TWD sidebar. * @param options - Options for initializing the sidebar. * @example * ```ts * import { initSidebar } from 'twd-js'; * * // Initialize the sidebar (e.g., in your main app file) * initSidebar({ * Component: <TWDSidebar open={true} position="left" />, * createRoot, * }); * ``` */ export declare const initSidebar: (options: Options) => void; export {};