Files
webstudio/app/shared/component/primitives/form.tsx
T
2022-03-15 13:14:35 +00:00

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";