mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-09 05:26:24 +09:00
29 lines
611 B
TypeScript
29 lines
611 B
TypeScript
import { type Style, components } from "@webstudio-is/sdk";
|
|
export { FormIcon as Icon } from "~/shared/icons";
|
|
|
|
// Webstudio specific default styles for the node type.
|
|
export const defaultStyle: Style = {
|
|
minHeight: {
|
|
type: "unit",
|
|
unit: "px",
|
|
value: 20,
|
|
},
|
|
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.Form;
|
|
|
|
export const label = "Form";
|