/
githubmirror
/
gutenberg
Обзор
Документация
Войти
/
githubmirror
/
gutenberg
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
packages/block-library/src/quote/save.js
19 строк
509 B
Marco Ciampini
ESLint: Replace strict config with bulk suppressions (#81248)
07 авг 2026, 14:34
Не верифицирован
07 авг 2026, 14:34
7f43eaf
Код
Авторство
О чём код?
import clsx from 'clsx'; import { InnerBlocks, RichText, useBlockProps } from '@wordpress/block-editor'; export default function save( { attributes } ) { const { textAlign, citation } = attributes; const className = clsx( { [ `has-text-align-${ textAlign }` ]: textAlign, } ); return ( <blockquote { ...useBlockProps.save( { className } ) }> <InnerBlocks.Content /> { ! RichText.isEmpty( citation ) && ( <RichText.Content tagName="cite" value={ citation } /> ) } </blockquote> ); }