Spaces:
Runtime error
Runtime error
File size: 536 Bytes
cd8bd0a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | import type { Meta, StoryObj } from "@storybook/react";
import CodeBlock from "./CodeBlock";
const meta: Meta<typeof CodeBlock> = {
title: "Docs/CodeBlock",
component: CodeBlock,
};
export default meta;
type Story = StoryObj<typeof CodeBlock>;
export const Default: Story = {
args: {
code: 'const hello = "world";\nconsole.log(hello);',
language: "typescript",
filename: "example.ts",
},
};
export const WithoutFilename: Story = {
args: {
code: "npm install @omniroute/core",
language: "bash",
},
};
|