@iamaeron/qwik-shikiji
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

Qwik Shikiji

Qwik component for beautiful code syntax highlighting by Shikiji.

Installation

Use your preferred package manager, but this snippet uses pnpm:

pnpm add @iamaeron/qwik-shikiji shikiji

Usage

Just import the component and you can use it simply like this:

import { QwikShikiji } from "@iamaeron/qwik-shikiji";
import { Slot } from "builder.io/qwik";

export default component$(() => {
  const exampleCode = `export const CoolQwikSnippet = component$(() => {
    return (
        <div>Qwik is awesome!</div>
    )
})`;

  return <QwikShikiji code={exampleCode} lang="tsx" />;
});

Customizing

Please wait for the official docs, I'll try to make it as fast as I can.

Package Sidebar

Install

npm i @iamaeron/qwik-shikiji

Weekly Downloads

2

Version

0.0.3

License

ISC

Unpacked Size

9.95 kB

Total Files

10

Last publish

Collaborators

  • iamaeron