diff --git a/docs/src/partials/gallery/preview.js b/docs/src/partials/gallery/preview.js index 2ba4af090..0eaec633a 100644 --- a/docs/src/partials/gallery/preview.js +++ b/docs/src/partials/gallery/preview.js @@ -11,7 +11,7 @@ const defaultProps = { } // component from component-playground without updating const Preview = (_props) => { - const props = {...defaultProps,_props} + const props = {...defaultProps, ..._props} let ref = useRef(); const compileCode = () => {