/
githubmirror
/
docusaurus
Обзор
Документация
Войти
/
githubmirror
/
docusaurus
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/docusaurus-theme-live-codeblock/src/theme/LiveCodeBlock/index.tsx
15 строк
507 B
Sébastien Lorber
refactor(live-codeblock): refactor live code block theme components (#11077)
10 апр 2025, 16:55
Не верифицирован
10 апр 2025, 16:55
29d19a6
Код
Авторство
О чём код?
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React, {type ReactNode} from 'react'; import Playground from '@theme/Playground'; import ReactLiveScope from '@theme/ReactLiveScope'; import type {Props} from '@theme/LiveCodeBlock'; export default function LiveCodeBlock(props: Props): ReactNode { return <Playground scope={ReactLiveScope} {...props} />; }