Files
OmniRoute/src/shared/components/docs/CodeBlock.stories.tsx
2026-05-05 09:32:43 -03:00

26 lines
536 B
TypeScript

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",
},
};