Component & Hook Reference
Documentation for the shared control sets, components, and hooks in lib/blocks/components and lib/blocks/hooks.
These reusable React components form Method’s block design system. They are imported by individual blocks to provide consistent, breakpoint‑aware Inspector panel controls. All components read from and write to the shared responsiveSettings attribute structure, and most use WordPress’s ToolsPanel / ToolsPanelItem pattern for opt‑in controls with per‑item reset.
Control Set Components
Utility Components
MethodStyleTag
Generates scoped <style> elements for live editor preview
MethodResponsiveTabs
Tabbed UI for mobile/tablet/wide breakpoint overrides
MethodOptInControl
Add/remove pattern for optional responsive controls
MethodLinkToolbar
Block toolbar link popover with search
Hooks
useResponsiveSetter
Curried setter for responsiveSettings breakpoint keys