mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-10 06:24:35 +09:00
27 lines
604 B
TypeScript
27 lines
604 B
TypeScript
import { type Style, components } from "@webstudio-is/sdk";
|
|
export { HeadingIcon 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 = ["Heading 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 = "Heading";
|
|
|
|
export const Component = components.Heading;
|