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

27 lines
615 B
TypeScript

import { type Style, components } from "@webstudio-is/sdk";
export { TextAlignLeftIcon as Icon } from "~/shared/icons";
// Webstudio specific default styles for the node type.
export const defaultStyle: Style = {
minHeight: {
type: "unit",
unit: "em",
value: 1,
},
};
export const children = ["Pragraph you can edit"];
export const canAcceptChild = (): boolean => {
return false;
};
export const isContentEditable = true;
// Can only be created from content editable fields
export const isInlineOnly = false;
export const label = "Paragraph";
export const Component = components.Paragraph;