LogoДокументация расширения браузера с ИИ - Полное руководство
LogoДокументация расширения браузера с ИИ - Полное руководство
Главная страница

Getting Started

Quick Start

Billing

Pricing

Core Features

Core Features

Tools Reference

Tools Overview

Guides

User Guides

Development

Development

UI Components

Components
AccordionBannerCode Block (Dynamic)FilesGitHub InfoZoomable ImageInline TOCRoot ToggleStepsTabsType Table

Advanced

OverviewThemesSearchInternationalization
X (Twitter)
Components

Code Block (Dynamic)

A codeblock that also highlights code

console.log("This is pre-rendered")

Usage

import { DynamicCodeBlock } from 'fumadocs-ui/components/dynamic-codeblock';

<DynamicCodeBlock lang="ts" code='console.log("Hello World")' />;

This component, different from the MDX CodeBlock component, can be used without MDX. It highlights the code with Shiki and use the default component to render it.

Features:

  • Can be pre-rendered on server
  • load languages and themes on browser lazily

Options

import { DynamicCodeBlock } from 'fumadocs-ui/components/dynamic-codeblock';

<DynamicCodeBlock
  lang="ts"
  code='console.log("Hello World")'
  options={{
    components: {
      // add/override components
    },
    // or Shiki options
  }}
/>;

Banner

Add a banner to your site

Files

Display file structure in your documentation

Содержание

Usage
Options