diff --git a/templates/plate-playground-template/src/components/plate-ui/toolbar.tsx b/templates/plate-playground-template/src/components/plate-ui/toolbar.tsx index 5f25a81e93..5a9b108401 100644 --- a/templates/plate-playground-template/src/components/plate-ui/toolbar.tsx +++ b/templates/plate-playground-template/src/components/plate-ui/toolbar.tsx @@ -37,8 +37,10 @@ export const ToolbarSeparator = withCn( ); export const ToolbarButton = withRef< - typeof ToolbarPrimitive.Button, - Omit, 'type'> & { + React.ExoticComponent< + Omit, 'value'> + >, + Omit, 'type' | 'value'> & { buttonType?: 'button' | 'toggle'; pressed?: boolean; tooltip?: ReactNode; @@ -53,7 +55,6 @@ export const ToolbarButton = withRef< isDropdown, children, pressed, - value, tooltip, ...props },