Skip to content

Commit

Permalink
Allow additional props on ToolsPanel
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronrobertshaw committed Nov 12, 2021
1 parent b2b868e commit 912389b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/components/src/tools-panel/tools-panel/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,11 @@ const ToolsPanel = (
panelContext,
resetAllItems,
toggleItem,
className,
...toolsPanelProps
} = useToolsPanel( props );

// Props are not directly passed through to avoid exposing Grid props
// until agreement has been reached on how ToolsPanel layout should be
// handled.
return (
<Grid columns={ 2 } className={ className } ref={ forwardedRef }>
<Grid { ...toolsPanelProps } columns={ 2 } ref={ forwardedRef }>
<ToolsPanelContext.Provider value={ panelContext }>
<ToolsPanelHeader
label={ label }
Expand Down

0 comments on commit 912389b

Please sign in to comment.