@wordpress/block-library
Version:
Block library for the WordPress editor.
95 lines • 2.11 kB
JavaScript
/**
* Internal dependencies
*/
import initBlock from '../utils/init-block';
const metadata = {
$schema: "https://schemas.wp.org/trunk/block.json",
apiVersion: 3,
name: "core/site-tagline",
title: "Site Tagline",
category: "theme",
description: "Describe in a few words what this site is about. This is important for search results, sharing on social media, and gives overall clarity to visitors.",
keywords: ["description"],
textdomain: "default",
attributes: {
textAlign: {
type: "string"
},
level: {
type: "number",
"default": 0
},
levelOptions: {
type: "array",
"default": [0, 1, 2, 3, 4, 5, 6]
}
},
example: {
viewportWidth: 350,
attributes: {
textAlign: "center"
}
},
supports: {
align: ["wide", "full"],
html: false,
color: {
gradients: true,
__experimentalDefaultControls: {
background: true,
text: true
}
},
spacing: {
margin: true,
padding: true,
__experimentalDefaultControls: {
margin: false,
padding: false
}
},
typography: {
fontSize: true,
lineHeight: true,
__experimentalFontFamily: true,
__experimentalTextTransform: true,
__experimentalTextDecoration: true,
__experimentalFontStyle: true,
__experimentalFontWeight: true,
__experimentalLetterSpacing: true,
__experimentalWritingMode: true,
__experimentalDefaultControls: {
fontSize: true
}
},
interactivity: {
clientNavigation: true
},
__experimentalBorder: {
radius: true,
color: true,
width: true,
style: true
}
},
editorStyle: "wp-block-site-tagline-editor",
style: "wp-block-site-tagline"
};
import edit from './edit';
import icon from './icon';
import deprecated from './deprecated';
const {
name
} = metadata;
export { metadata, name };
export const settings = {
icon,
edit,
deprecated
};
export const init = () => initBlock({
name,
metadata,
settings
});
//# sourceMappingURL=index.js.map