Practic BUI (Base UI) - v1.0.0
    Preparing search index...
    • Highlights a fenced code block's source in colours that suit the page's light or dark mode (useTheme), as the text of the block that holds it.

      Parameters

      • props: { language: string; source: string }

        Code block properties.

        • language: string

          The fence's language, such as tsx; one that is not registered shows as plain text.

        • source: string

          The code to highlight.

      Returns Element