mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-09 14:03:33 +09:00
29 lines
612 B
TypeScript
29 lines
612 B
TypeScript
import { type Style, components } from "@webstudio-is/sdk";
|
|
export { SquareIcon as Icon } from "~/shared/icons";
|
|
|
|
// Webstudio specific default styles for the node type.
|
|
export const defaultStyle: Style = {
|
|
minHeight: {
|
|
type: "unit",
|
|
unit: "px",
|
|
value: 100,
|
|
},
|
|
boxSizing: {
|
|
type: "keyword",
|
|
value: "border-box",
|
|
},
|
|
};
|
|
|
|
export const canAcceptChild = (): boolean => {
|
|
return true;
|
|
};
|
|
|
|
export const isContentEditable = false;
|
|
|
|
// Can only be created from content editable fields
|
|
export const isInlineOnly = false;
|
|
|
|
export const Component = components.Box;
|
|
|
|
export const label = "Box";
|