mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-08 21:15:18 +09:00
22 lines
582 B
TypeScript
22 lines
582 B
TypeScript
import { type Style, components } from "@webstudio-is/sdk";
|
|
export { ButtonIcon as Icon } from "~/shared/icons";
|
|
|
|
// Webstudio specific default styles for the node type.
|
|
export const defaultStyle: Style = {};
|
|
|
|
export const canAcceptChild = (): boolean => {
|
|
// @todo could accept an icon in the future
|
|
return false;
|
|
};
|
|
|
|
export const isContentEditable = true;
|
|
|
|
// Can only be created from content editable fields
|
|
export const isInlineOnly = false;
|
|
|
|
export const children = ["Button text you can edit"];
|
|
|
|
export const Component = components.Button;
|
|
|
|
export const label = "Button";
|