@wordpress/global-styles-ui
Version:
Global Styles UI components for WordPress.
74 lines • 3.43 kB
TypeScript
export declare const ELEMENTS: {
text: {
description: import("@wordpress/i18n").TransformedText<"Manage the fonts used on the site.">;
title: import("@wordpress/i18n").TransformedText<"Text">;
};
link: {
description: import("@wordpress/i18n").TransformedText<"Manage the appearance of links.">;
title: import("@wordpress/i18n").TransformedText<"Link">;
};
caption: {
description: import("@wordpress/i18n").TransformedText<"Manage the appearance of captions.">;
title: import("@wordpress/i18n").TransformedText<"Caption">;
};
cite: {
description: import("@wordpress/i18n").TransformedText<"Manage the appearance of citations.">;
title: import("@wordpress/i18n").TransformedText<"Citation">;
};
heading: {
description: import("@wordpress/i18n").TransformedText<"Manage the appearance of all headings.">;
title: import("@wordpress/i18n").TransformedText<"All headings">;
};
h1: {
description: import("@wordpress/i18n").TransformedText<"Manage the appearance of level 1 headings.">;
title: import("@wordpress/i18n").TransformedText<"Heading 1">;
};
h2: {
description: import("@wordpress/i18n").TransformedText<"Manage the appearance of level 2 headings.">;
title: import("@wordpress/i18n").TransformedText<"Heading 2">;
};
h3: {
description: import("@wordpress/i18n").TransformedText<"Manage the appearance of level 3 headings.">;
title: import("@wordpress/i18n").TransformedText<"Heading 3">;
};
h4: {
description: import("@wordpress/i18n").TransformedText<"Manage the appearance of level 4 headings.">;
title: import("@wordpress/i18n").TransformedText<"Heading 4">;
};
h5: {
description: import("@wordpress/i18n").TransformedText<"Manage the appearance of level 5 headings.">;
title: import("@wordpress/i18n").TransformedText<"Heading 5">;
};
h6: {
description: import("@wordpress/i18n").TransformedText<"Manage the appearance of level 6 headings.">;
title: import("@wordpress/i18n").TransformedText<"Heading 6">;
};
textInput: {
description: import("@wordpress/i18n").TransformedText<"Manage the appearance of inputs.">;
title: import("@wordpress/i18n").TransformedText<"Form input">;
};
select: {
description: import("@wordpress/i18n").TransformedText<"Manage the appearance of selects.">;
title: import("@wordpress/i18n").TransformedText<"Form select">;
};
button: {
description: import("@wordpress/i18n").TransformedText<"Manage the appearance of buttons.">;
title: import("@wordpress/i18n").TransformedText<"Form button">;
};
};
export type ElementName = keyof typeof ELEMENTS;
interface ScreenElementProps {
/**
* The element to style. Read from the `:element` path parameter when not
* given, which is how the elements in the block list open.
*/
element?: ElementName;
/**
* Whether to offer the element's states, such as hover. Follows the same
* editor setting that turns off state editing for blocks.
*/
showStateControls?: boolean;
}
declare function ScreenElement({ element: elementProp, showStateControls, }: ScreenElementProps): import("react").JSX.Element | null;
export default ScreenElement;
//# sourceMappingURL=screen-element.d.ts.map