Download src/shared/components/docs/CodeBlock.stories.tsx from rais133/omniroute: direct link, hf CLI and curl.
- Browser
- Download file 536 Bytes
-
https://huggingface.co/spaces/rais133/omniroute/resolve/main/src/shared/components/docs/CodeBlock.stories.tsx
- Command line
-
hf download hf://spaces/rais133/omniroute/src/shared/components/docs/CodeBlock.stories.tsx
-
curl -L -o CodeBlock.stories.tsx https://huggingface.co/spaces/rais133/omniroute/resolve/main/src/shared/components/docs/CodeBlock.stories.tsx
536 Bytes
| 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", | |
| }, | |
| }; | |