/
githubmirror
/
gutenberg
Обзор
Документация
Войти
/
githubmirror
/
gutenberg
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
widgets/hello-world/render.tsx
25 строк
519 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 { Stack, Text } from '@wordpress/ui'; import styles from './style.module.css'; interface HelloWorldAttributes { message?: string; } type HelloWorldRenderProps = { attributes?: HelloWorldAttributes; }; export default function HelloWorld( { attributes }: HelloWorldRenderProps ) { return ( <Stack align="center" justify="center" className={ clsx( styles.root ) } > <Text variant="heading-2xl"> { attributes?.message || 'Hello World' } </Text> </Stack> ); }