# sliderberg/trunk/shared/src/components/ToolsPanelWrapper.tsx

Slider Block by Sliderberg – WordPress Slider &amp; Carousel Plugin for Gutenberg, version trunk. 37 lines.

- Page: https://pluginprobe.com/plugins/sliderberg/trunk/code/shared/src/components/ToolsPanelWrapper.tsx
- Raw: https://pluginprobe.com/plugins/sliderberg/trunk/raw/shared/src/components/ToolsPanelWrapper.tsx
- Modified: 2026-09-15T03:04:50+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/sliderberg/trunk/code/shared/src/components/ToolsPanelWrapper.tsx#L10-L20`.

```tsx
/**
 * Reusable ToolsPanel Wrapper Component
 * Can be used for any set of controls that need a ToolsPanel
 */

import React from "react";
import { __experimentalToolsPanel as ToolsPanel } from "@wordpress/components";

interface ToolsPanelWrapperProps {
  label: string;
  resetAll?: () => void;
  children: React.ReactNode;
  className?: string;
  dropdownMenuProps?: Record<string, any>;
}

export const ToolsPanelWrapper: React.FC<ToolsPanelWrapperProps> = ({
  label,
  resetAll,
  children,
  className,
  dropdownMenuProps,
}) => {
  return (
    <ToolsPanel
      label={label}
      resetAll={resetAll}
      className={className}
      dropdownMenuProps={dropdownMenuProps}
    >
      {children}
    </ToolsPanel>
  );
};

export default ToolsPanelWrapper;

```
