Skip to content

Commit

Permalink
Merge pull request #3478 from bettyblocks/feat/add-empty-widget-compo…
Browse files Browse the repository at this point in the history
…nent-STAR-393

feat: added widget component and update box position
  • Loading branch information
JorisPannekeet authored Oct 1, 2024
2 parents afd54e6 + 36cf8fe commit 31f2270
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions src/prefabs/emptyWidget.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import {
prefab as makePrefab,
Icon,
wrapper,
} from '@betty-blocks/component-sdk';

const attrs = {
icon: Icon.ContainerIcon,
keywords: ['Empty', 'widget'],
category: 'LAYOUT',
};

export default makePrefab('Empty Widget', attrs, undefined, [
wrapper(
{
label: 'Empty widget',
options: {},
},
[],
),
]);
2 changes: 1 addition & 1 deletion src/prefabs/structures/Box/options/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export const boxOptions = {
['Sticky', 'sticky'],
],
{
value: 'static',
value: 'relative',
configuration: {
dataType: 'string',
},
Expand Down

0 comments on commit 31f2270

Please sign in to comment.