Skip to content

Commit

Permalink
fix canvas styles and Default object
Browse files Browse the repository at this point in the history
  • Loading branch information
Rishit30G committed Jan 21, 2025
1 parent 249a177 commit 1461307
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ const meta = {
control: 'object',
description: 'The styles to apply to the canvas.',
table: {
type: { summary: 'object' },
type: {
summary:
'{ css?: string; assets?: string; isGlobalStyles?: boolean; __unstableType: string; }[]',
},
},
},
},
Expand All @@ -46,12 +49,9 @@ export default meta;

export const Default = {
args: {
height: '300px',
styles: {
border: '1px solid #ccc',
backgroundColor: '#f9f9f9',
},
children: <BlockList />, // Default `children` is `BlockList`
height: '100px',
styles: [ { css: `body{font-size: 16px;}` } ],
children: <BlockList />,
},
render: function Template( args ) {
return <BlockCanvas { ...args } />;
Expand Down

0 comments on commit 1461307

Please sign in to comment.